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

Side by Side Diff: media/renderers/mock_gpu_video_accelerator_factories.h

Issue 2526683002: gpu: Rename AllocateGpuMemoryBuffer to CreateGpuMemoryBuffer. (Closed)
Patch Set: . Created 4 years 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_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 uint32_t texture_target)); 46 uint32_t texture_target));
47 MOCK_METHOD1(DeleteTexture, void(uint32_t texture_id)); 47 MOCK_METHOD1(DeleteTexture, void(uint32_t texture_id));
48 MOCK_METHOD0(CreateSyncToken, gpu::SyncToken()); 48 MOCK_METHOD0(CreateSyncToken, gpu::SyncToken());
49 MOCK_METHOD1(WaitSyncToken, void(const gpu::SyncToken& sync_token)); 49 MOCK_METHOD1(WaitSyncToken, void(const gpu::SyncToken& sync_token));
50 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>()); 50 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>());
51 MOCK_METHOD0(GetVideoDecodeAcceleratorCapabilities, 51 MOCK_METHOD0(GetVideoDecodeAcceleratorCapabilities,
52 VideoDecodeAccelerator::Capabilities()); 52 VideoDecodeAccelerator::Capabilities());
53 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, 53 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles,
54 VideoEncodeAccelerator::SupportedProfiles()); 54 VideoEncodeAccelerator::SupportedProfiles());
55 55
56 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 56 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
57 const gfx::Size& size, 57 const gfx::Size& size,
58 gfx::BufferFormat format, 58 gfx::BufferFormat format,
59 gfx::BufferUsage usage) override; 59 gfx::BufferUsage usage) override;
60 60
61 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; 61 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override;
62 unsigned ImageTextureTarget(gfx::BufferFormat format) override; 62 unsigned ImageTextureTarget(gfx::BufferFormat format) override;
63 OutputFormat VideoFrameOutputFormat() override { 63 OutputFormat VideoFrameOutputFormat() override {
64 return video_frame_output_format_; 64 return video_frame_output_format_;
65 }; 65 };
66 66
(...skipping 27 matching lines...) Expand all
94 OutputFormat video_frame_output_format_ = OutputFormat::I420; 94 OutputFormat video_frame_output_format_ = OutputFormat::I420;
95 95
96 bool fail_to_allocate_gpu_memory_buffer_ = false; 96 bool fail_to_allocate_gpu_memory_buffer_ = false;
97 97
98 gpu::gles2::GLES2Interface* gles2_; 98 gpu::gles2::GLES2Interface* gles2_;
99 }; 99 };
100 100
101 } // namespace media 101 } // namespace media
102 102
103 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 103 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/renderers/gpu_video_accelerator_factories.h ('k') | media/renderers/mock_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698