| 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 "content/common/gpu/media/android_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/android_video_decode_accelerator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 namespace content { | 32 namespace content { |
| 33 | 33 |
| 34 class MockVideoDecodeAcceleratorClient | 34 class MockVideoDecodeAcceleratorClient |
| 35 : public media::VideoDecodeAccelerator::Client { | 35 : public media::VideoDecodeAccelerator::Client { |
| 36 public: | 36 public: |
| 37 MockVideoDecodeAcceleratorClient() {} | 37 MockVideoDecodeAcceleratorClient() {} |
| 38 ~MockVideoDecodeAcceleratorClient() override {} | 38 ~MockVideoDecodeAcceleratorClient() override {} |
| 39 | 39 |
| 40 // VideoDecodeAccelerator::Client implementation. | 40 // VideoDecodeAccelerator::Client implementation. |
| 41 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 41 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 42 uint32_t textures_per_buffer, |
| 42 const gfx::Size& dimensions, | 43 const gfx::Size& dimensions, |
| 43 uint32_t texture_target) override {} | 44 uint32_t texture_target) override {} |
| 44 void DismissPictureBuffer(int32_t picture_buffer_id) override {} | 45 void DismissPictureBuffer(int32_t picture_buffer_id) override {} |
| 45 void PictureReady(const media::Picture& picture) override {} | 46 void PictureReady(const media::Picture& picture) override {} |
| 46 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override {} | 47 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override {} |
| 47 void NotifyFlushDone() override {} | 48 void NotifyFlushDone() override {} |
| 48 void NotifyResetDone() override {} | 49 void NotifyResetDone() override {} |
| 49 void NotifyError(media::VideoDecodeAccelerator::Error error) override {} | 50 void NotifyError(media::VideoDecodeAccelerator::Error error) override {} |
| 50 }; | 51 }; |
| 51 | 52 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return; | 95 return; |
| 95 EXPECT_TRUE(Configure(media::kCodecVP8)); | 96 EXPECT_TRUE(Configure(media::kCodecVP8)); |
| 96 } | 97 } |
| 97 | 98 |
| 98 } // namespace content | 99 } // namespace content |
| 99 | 100 |
| 100 int main(int argc, char **argv) { | 101 int main(int argc, char **argv) { |
| 101 testing::InitGoogleTest(&argc, argv); | 102 testing::InitGoogleTest(&argc, argv); |
| 102 return RUN_ALL_TESTS(); | 103 return RUN_ALL_TESTS(); |
| 103 } | 104 } |
| OLD | NEW |