summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-13 01:07:32 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-13 01:07:32 +0000
commit31fe0b6c99296b4016019ede18204307fdae2ea8 (patch)
treee4ab2382cc52b21466caa732f73e8d86fb9c45a9 /content
parent01f07bf53b3ae7af8511cfb5437837a031f49487 (diff)
downloadchromium_src-31fe0b6c99296b4016019ede18204307fdae2ea8.zip
chromium_src-31fe0b6c99296b4016019ede18204307fdae2ea8.tar.gz
chromium_src-31fe0b6c99296b4016019ede18204307fdae2ea8.tar.bz2
Implement GL_CHROMIUM_rate_limit_offscreen_context
+jamesr for OWNERS on content/renderer because nobody else on GPU has owners there. :s BUG=81481 Review URL: http://codereview.chromium.org/6976012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/webgraphicscontext3d_command_buffer_impl.cc5
-rw-r--r--content/renderer/webgraphicscontext3d_command_buffer_impl.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/content/renderer/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
index dec846e..daf0218 100644
--- a/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -379,6 +379,11 @@ void WebGraphicsContext3DCommandBufferImpl::setLatchCHROMIUM(
glFlush(); // required to ensure set command is sent to GPU process
}
+void WebGraphicsContext3DCommandBufferImpl::
+ rateLimitOffscreenContextCHROMIUM() {
+ glRateLimitOffscreenContextCHROMIUM();
+}
+
WebKit::WebString WebGraphicsContext3DCommandBufferImpl::
getRequestableExtensionsCHROMIUM() {
return WebKit::WebString::fromUTF8(glGetRequestableExtensionsCHROMIUM());
diff --git a/content/renderer/webgraphicscontext3d_command_buffer_impl.h b/content/renderer/webgraphicscontext3d_command_buffer_impl.h
index c968e9b..82441c3 100644
--- a/content/renderer/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/renderer/webgraphicscontext3d_command_buffer_impl.h
@@ -408,6 +408,8 @@ class WebGraphicsContext3DCommandBufferImpl
virtual void waitLatchCHROMIUM(WGC3Duint latch_id);
virtual void setLatchCHROMIUM(WGC3Duint latch_id);
+ virtual void rateLimitOffscreenContextCHROMIUM();
+
virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
virtual void requestExtensionCHROMIUM(const char*);