Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator_unittest.cc

Issue 1751323002: Allow multiple texture ids per picture buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698