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

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

Issue 2019333004: Revert of Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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,
49 uint32_t textures_per_buffer, 48 uint32_t textures_per_buffer,
50 const gfx::Size& dimensions, 49 const gfx::Size& dimensions,
51 uint32_t texture_target) override {} 50 uint32_t texture_target) override {}
52 void DismissPictureBuffer(int32_t picture_buffer_id) override {} 51 void DismissPictureBuffer(int32_t picture_buffer_id) override {}
53 void PictureReady(const media::Picture& picture) override {} 52 void PictureReady(const media::Picture& picture) override {}
54 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override {} 53 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override {}
55 void NotifyFlushDone() override {} 54 void NotifyFlushDone() override {}
56 void NotifyResetDone() override {} 55 void NotifyResetDone() override {}
57 void NotifyError(media::VideoDecodeAccelerator::Error error) override {} 56 void NotifyError(media::VideoDecodeAccelerator::Error error) override {}
58 }; 57 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return; 103 return;
105 EXPECT_TRUE(Configure(media::kCodecVP8)); 104 EXPECT_TRUE(Configure(media::kCodecVP8));
106 } 105 }
107 106
108 } // namespace media 107 } // namespace media
109 108
110 int main(int argc, char** argv) { 109 int main(int argc, char** argv) {
111 testing::InitGoogleTest(&argc, argv); 110 testing::InitGoogleTest(&argc, argv);
112 return RUN_ALL_TESTS(); 111 return RUN_ALL_TESTS();
113 } 112 }
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