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

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

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on bots Created 4 years, 6 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 "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
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
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 }
OLDNEW
« no previous file with comments | « media/gpu/android_video_decode_accelerator.cc ('k') | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698