OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/gpu/android_video_decode_accelerator.h" | 5 #include "media/gpu/android_video_decode_accelerator.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 namespace media { | 38 namespace media { |
39 | 39 |
40 class MockVideoDecodeAcceleratorClient | 40 class MockVideoDecodeAcceleratorClient |
41 : public media::VideoDecodeAccelerator::Client { | 41 : public media::VideoDecodeAccelerator::Client { |
42 public: | 42 public: |
43 MockVideoDecodeAcceleratorClient() {} | 43 MockVideoDecodeAcceleratorClient() {} |
44 ~MockVideoDecodeAcceleratorClient() override {} | 44 ~MockVideoDecodeAcceleratorClient() override {} |
45 | 45 |
46 // VideoDecodeAccelerator::Client implementation. | 46 // VideoDecodeAccelerator::Client implementation. |
47 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 47 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 48 VideoPixelFormat format, |
48 uint32_t textures_per_buffer, | 49 uint32_t textures_per_buffer, |
49 const gfx::Size& dimensions, | 50 const gfx::Size& dimensions, |
50 uint32_t texture_target) override {} | 51 uint32_t texture_target) override {} |
51 void DismissPictureBuffer(int32_t picture_buffer_id) override {} | 52 void DismissPictureBuffer(int32_t picture_buffer_id) override {} |
52 void PictureReady(const media::Picture& picture) override {} | 53 void PictureReady(const media::Picture& picture) override {} |
53 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override {} | 54 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override {} |
54 void NotifyFlushDone() override {} | 55 void NotifyFlushDone() override {} |
55 void NotifyResetDone() override {} | 56 void NotifyResetDone() override {} |
56 void NotifyError(media::VideoDecodeAccelerator::Error error) override {} | 57 void NotifyError(media::VideoDecodeAccelerator::Error error) override {} |
57 }; | 58 }; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 return; | 104 return; |
104 EXPECT_TRUE(Configure(media::kCodecVP8)); | 105 EXPECT_TRUE(Configure(media::kCodecVP8)); |
105 } | 106 } |
106 | 107 |
107 } // namespace media | 108 } // namespace media |
108 | 109 |
109 int main(int argc, char** argv) { | 110 int main(int argc, char** argv) { |
110 testing::InitGoogleTest(&argc, argv); | 111 testing::InitGoogleTest(&argc, argv); |
111 return RUN_ALL_TESTS(); | 112 return RUN_ALL_TESTS(); |
112 } | 113 } |
OLD | NEW |