summaryrefslogtreecommitdiffstats
path: root/content/renderer/pepper/ppb_graphics_3d_impl.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-27 01:18:35 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-27 01:18:35 +0000
commit744e079897d430c91b18352c8e200bbeeadffe8b (patch)
tree2d75297b938cd2e21586455340240c5b9e88bf32 /content/renderer/pepper/ppb_graphics_3d_impl.cc
parent7ba34a0114537b08164b4f44943ec5c25aac9417 (diff)
downloadchromium_src-744e079897d430c91b18352c8e200bbeeadffe8b.zip
chromium_src-744e079897d430c91b18352c8e200bbeeadffe8b.tar.gz
chromium_src-744e079897d430c91b18352c8e200bbeeadffe8b.tar.bz2
Make *CommandBufferProxy* implement GpuControl
GpuControl is where we will pipe out-of-band stuff, that is currently done in each of the WGC3D implementations, but we want to move down into GLES2Implementation. This is essentially just a refactoring, since the current GpuControl only deals with GpuMemoryBuffer that's not available out-of-process, but we can then add things like GenerateMailboxes, Ensure/DiscardBackbuffer or callback stuff on top. BUG=181120 R=dmichael@chromium.org, sievers@chromium.org Review URL: https://codereview.chromium.org/24711002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/pepper/ppb_graphics_3d_impl.cc')
-rw-r--r--content/renderer/pepper/ppb_graphics_3d_impl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/renderer/pepper/ppb_graphics_3d_impl.cc b/content/renderer/pepper/ppb_graphics_3d_impl.cc
index b48d68a..1f11803 100644
--- a/content/renderer/pepper/ppb_graphics_3d_impl.cc
+++ b/content/renderer/pepper/ppb_graphics_3d_impl.cc
@@ -189,6 +189,10 @@ gpu::CommandBuffer* PPB_Graphics3D_Impl::GetCommandBuffer() {
return platform_context_->GetCommandBuffer();
}
+gpu::GpuControl* PPB_Graphics3D_Impl::GetGpuControl() {
+ return platform_context_->GetGpuControl();
+}
+
int32 PPB_Graphics3D_Impl::DoSwapBuffers() {
// We do not have a GLES2 implementation when using an OOP proxy.
// The plugin-side proxy is responsible for adding the SwapBuffers command