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

Side by Side Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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 CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool CreateTextures(int32 count, 61 bool CreateTextures(int32 count,
62 const gfx::Size& size, 62 const gfx::Size& size,
63 std::vector<uint32>* texture_ids, 63 std::vector<uint32>* texture_ids,
64 std::vector<gpu::Mailbox>* texture_mailboxes, 64 std::vector<gpu::Mailbox>* texture_mailboxes,
65 uint32 texture_target) override; 65 uint32 texture_target) override;
66 void DeleteTexture(uint32 texture_id) override; 66 void DeleteTexture(uint32 texture_id) override;
67 void WaitSyncPoint(uint32 sync_point) override; 67 void WaitSyncPoint(uint32 sync_point) override;
68 68
69 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 69 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
70 const gfx::Size& size, 70 const gfx::Size& size,
71 gfx::GpuMemoryBuffer::Format format, 71 gfx::BufferFormat format,
72 gfx::GpuMemoryBuffer::Usage usage) override; 72 gfx::BufferUsage usage) override;
73 73
74 bool IsTextureRGSupported() override; 74 bool IsTextureRGSupported() override;
75 unsigned ImageTextureTarget() override; 75 unsigned ImageTextureTarget() override;
76 gpu::gles2::GLES2Interface* GetGLES2Interface() override; 76 gpu::gles2::GLES2Interface* GetGLES2Interface() override;
77 scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; 77 scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override;
78 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; 78 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override;
79 79
80 std::vector<media::VideoDecodeAccelerator::SupportedProfile> 80 std::vector<media::VideoDecodeAccelerator::SupportedProfile>
81 GetVideoDecodeAcceleratorSupportedProfiles() override; 81 GetVideoDecodeAcceleratorSupportedProfiles() override;
82 std::vector<media::VideoEncodeAccelerator::SupportedProfile> 82 std::vector<media::VideoEncodeAccelerator::SupportedProfile>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // For sending requests to allocate shared memory in the Browser process. 116 // For sending requests to allocate shared memory in the Browser process.
117 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 117 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 119 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
120 }; 120 };
121 121
122 } // namespace content 122 } // namespace content
123 123
124 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 124 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/vaapi_drm_picture.cc ('k') | content/renderer/media/renderer_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698