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

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

Issue 2398463003: 16 bit capture and GPU&CPU memory buffer support.
Patch Set: fixes. Created 4 years, 2 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 gpu::SyncToken CreateSyncToken() override; 73 gpu::SyncToken CreateSyncToken() override;
74 void WaitSyncToken(const gpu::SyncToken& sync_token) override; 74 void WaitSyncToken(const gpu::SyncToken& sync_token) override;
75 75
76 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 76 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
77 const gfx::Size& size, 77 const gfx::Size& size,
78 gfx::BufferFormat format, 78 gfx::BufferFormat format,
79 gfx::BufferUsage usage) override; 79 gfx::BufferUsage usage) override;
80 80
81 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; 81 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override;
82 unsigned ImageTextureTarget(gfx::BufferFormat format) override; 82 unsigned ImageTextureTarget(gfx::BufferFormat format) override;
83 media::VideoPixelFormat VideoFrameOutputFormat() override; 83 media::VideoPixelFormat VideoFrameOutputFormat(
84 media::VideoPixelFormat) override;
84 std::unique_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock> 85 std::unique_ptr<media::GpuVideoAcceleratorFactories::ScopedGLContextLock>
85 GetGLContextLock() override; 86 GetGLContextLock() override;
86 bool CheckContextLost(); 87 bool CheckContextLost();
87 std::unique_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override; 88 std::unique_ptr<base::SharedMemory> CreateSharedMemory(size_t size) override;
88 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override; 89 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override;
89 90
90 media::VideoDecodeAccelerator::Capabilities 91 media::VideoDecodeAccelerator::Capabilities
91 GetVideoDecodeAcceleratorCapabilities() override; 92 GetVideoDecodeAcceleratorCapabilities() override;
92 std::vector<media::VideoEncodeAccelerator::SupportedProfile> 93 std::vector<media::VideoEncodeAccelerator::SupportedProfile>
93 GetVideoEncodeAcceleratorSupportedProfiles() override; 94 GetVideoEncodeAcceleratorSupportedProfiles() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 // For sending requests to allocate shared memory in the Browser process. 131 // For sending requests to allocate shared memory in the Browser process.
131 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 132 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 134 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
134 }; 135 };
135 136
136 } // namespace content 137 } // namespace content
137 138
138 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 139 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « content/common/media/video_capture_messages.h ('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