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

Side by Side Diff: media/video/mock_video_decode_accelerator.h

Issue 1839193003: Reland: Introduce GpuVideoDecodeAcceleratorFactory. (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include "video_decode_accelerator.h" 8 #include "video_decode_accelerator.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 16 matching lines...) Expand all
27 virtual ~MockVideoDecodeAccelerator(); 27 virtual ~MockVideoDecodeAccelerator();
28 28
29 MOCK_METHOD2(Initialize, bool(const Config& config, Client* client)); 29 MOCK_METHOD2(Initialize, bool(const Config& config, Client* client));
30 MOCK_METHOD1(Decode, void(const BitstreamBuffer& bitstream_buffer)); 30 MOCK_METHOD1(Decode, void(const BitstreamBuffer& bitstream_buffer));
31 MOCK_METHOD1(AssignPictureBuffers, 31 MOCK_METHOD1(AssignPictureBuffers,
32 void(const std::vector<PictureBuffer>& buffers)); 32 void(const std::vector<PictureBuffer>& buffers));
33 MOCK_METHOD1(ReusePictureBuffer, void(int32_t picture_buffer_id)); 33 MOCK_METHOD1(ReusePictureBuffer, void(int32_t picture_buffer_id));
34 MOCK_METHOD0(Flush, void()); 34 MOCK_METHOD0(Flush, void());
35 MOCK_METHOD0(Reset, void()); 35 MOCK_METHOD0(Reset, void());
36 MOCK_METHOD0(Destroy, void()); 36 MOCK_METHOD0(Destroy, void());
37 MOCK_METHOD0(CanDecodeOnIOThread, bool()); 37 MOCK_METHOD2(TryToSetupDecodeOnSeparateThread,
38 bool(const base::WeakPtr<Client>&,
39 const scoped_refptr<base::SingleThreadTaskRunner>&));
38 40
39 private: 41 private:
40 void DeleteThis(); 42 void DeleteThis();
41 DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator); 43 DISALLOW_COPY_AND_ASSIGN(MockVideoDecodeAccelerator);
42 }; 44 };
43 45
44 } // namespace media 46 } // namespace media
45 47
46 #endif // MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_ 48 #endif // MEDIA_VIDEO_MOCK_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698