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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Folded sync_point into sync_tokens Created 5 years, 1 month 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "media/renderers/gpu_video_accelerator_factories.h" 10 #include "media/renderers/gpu_video_accelerator_factories.h"
(...skipping 21 matching lines...) Expand all
32 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*()); 32 MOCK_METHOD0(DoCreateVideoDecodeAccelerator, VideoDecodeAccelerator*());
33 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*()); 33 MOCK_METHOD0(DoCreateVideoEncodeAccelerator, VideoEncodeAccelerator*());
34 34
35 MOCK_METHOD5(CreateTextures, 35 MOCK_METHOD5(CreateTextures,
36 bool(int32 count, 36 bool(int32 count,
37 const gfx::Size& size, 37 const gfx::Size& size,
38 std::vector<uint32>* texture_ids, 38 std::vector<uint32>* texture_ids,
39 std::vector<gpu::Mailbox>* texture_mailboxes, 39 std::vector<gpu::Mailbox>* texture_mailboxes,
40 uint32 texture_target)); 40 uint32 texture_target));
41 MOCK_METHOD1(DeleteTexture, void(uint32 texture_id)); 41 MOCK_METHOD1(DeleteTexture, void(uint32 texture_id));
42 MOCK_METHOD1(WaitSyncPoint, void(uint32 sync_point)); 42 MOCK_METHOD1(WaitSyncToken, void(const gpu::SyncToken& sync_token));
43 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>()); 43 MOCK_METHOD0(GetTaskRunner, scoped_refptr<base::SingleThreadTaskRunner>());
44 MOCK_METHOD0(GetVideoDecodeAcceleratorSupportedProfiles, 44 MOCK_METHOD0(GetVideoDecodeAcceleratorSupportedProfiles,
45 VideoDecodeAccelerator::SupportedProfiles()); 45 VideoDecodeAccelerator::SupportedProfiles());
46 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles, 46 MOCK_METHOD0(GetVideoEncodeAcceleratorSupportedProfiles,
47 VideoEncodeAccelerator::SupportedProfiles()); 47 VideoEncodeAccelerator::SupportedProfiles());
48 48
49 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 49 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
50 const gfx::Size& size, 50 const gfx::Size& size,
51 gfx::BufferFormat format, 51 gfx::BufferFormat format,
52 gfx::BufferUsage usage) override; 52 gfx::BufferUsage usage) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420; 84 VideoPixelFormat video_frame_output_format_ = PIXEL_FORMAT_I420;
85 85
86 bool fail_to_allocate_gpu_memory_buffer_ = false; 86 bool fail_to_allocate_gpu_memory_buffer_ = false;
87 87
88 gpu::gles2::GLES2Interface* gles2_; 88 gpu::gles2::GLES2Interface* gles2_;
89 }; 89 };
90 90
91 } // namespace media 91 } // namespace media
92 92
93 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 93 #endif // MEDIA_RENDERERS_MOCK_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698