summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gpu_control_service.h
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-01 05:06:35 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-01 05:06:35 +0000
commitbaed42c24524270f2927f9f2b1f78645a2a31afb (patch)
treed91c2741513a0545e691a50cfac24b05c10d97e7 /gpu/command_buffer/service/gpu_control_service.h
parent85f2e0b4302ba5021faa6a20743b6b5316aa9e19 (diff)
downloadchromium_src-baed42c24524270f2927f9f2b1f78645a2a31afb.zip
chromium_src-baed42c24524270f2927f9f2b1f78645a2a31afb.tar.gz
chromium_src-baed42c24524270f2927f9f2b1f78645a2a31afb.tar.bz2
Route GenMailboxCHROMIUM through GpuControl
This allows the fast path to work in GLES2Implementation rather than needing WGC3DCBI. BUG=181120 R=sievers@chromium.org Review URL: https://codereview.chromium.org/24714002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gpu_control_service.h')
-rw-r--r--gpu/command_buffer/service/gpu_control_service.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gpu_control_service.h b/gpu/command_buffer/service/gpu_control_service.h
index 6b781f8..1dce9d1 100644
--- a/gpu/command_buffer/service/gpu_control_service.h
+++ b/gpu/command_buffer/service/gpu_control_service.h
@@ -15,10 +15,15 @@ namespace gpu {
class GpuMemoryBufferFactory;
class GpuMemoryBufferManagerInterface;
+namespace gles2 {
+class MailboxManager;
+}
+
class GPU_EXPORT GpuControlService : public GpuControl {
public:
GpuControlService(GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager,
- GpuMemoryBufferFactory* gpu_memory_buffer_factory);
+ GpuMemoryBufferFactory* gpu_memory_buffer_factory,
+ gles2::MailboxManager* mailbox_manager);
virtual ~GpuControlService();
// Overridden from GpuControl:
@@ -30,6 +35,8 @@ class GPU_EXPORT GpuControlService : public GpuControl {
unsigned internalformat,
int32* id) OVERRIDE;
virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
+ virtual bool GenerateMailboxNames(unsigned num,
+ std::vector<gpu::Mailbox>* names) OVERRIDE;
// Register an existing gpu memory buffer and get an ID that can be used
// to identify it in the command buffer.
@@ -42,6 +49,7 @@ class GPU_EXPORT GpuControlService : public GpuControl {
private:
GpuMemoryBufferManagerInterface* gpu_memory_buffer_manager_;
GpuMemoryBufferFactory* gpu_memory_buffer_factory_;
+ gles2::MailboxManager* mailbox_manager_;
typedef std::map<int32, linked_ptr<gfx::GpuMemoryBuffer> > GpuMemoryBufferMap;
GpuMemoryBufferMap gpu_memory_buffers_;