summaryrefslogtreecommitdiffstats
path: root/webkit/gpu
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-08 01:29:40 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-08 01:29:40 +0000
commit63487d2c29b397ad7a4ef1ef5f0d2ee8509222c6 (patch)
tree5930c11a85472f328d93f0b7c317e090435a9d08 /webkit/gpu
parentbbe7250added91877c9570465a407aab4a2a7e7e (diff)
downloadchromium_src-63487d2c29b397ad7a4ef1ef5f0d2ee8509222c6.zip
chromium_src-63487d2c29b397ad7a4ef1ef5f0d2ee8509222c6.tar.gz
chromium_src-63487d2c29b397ad7a4ef1ef5f0d2ee8509222c6.tar.bz2
Rename discardFramebufferEXT to discardBackbufferCHROMIUM to avoid collision with real discardFramebufferEXT
Calling the (real) discardFramebufferEXT in the compositor is a performance win, at least on tilers. However currently it can't be called because we alias the name for a different API that controls backbuffer allocation, which I don't want to change. This renames the code to make backbuffer control a completely separate API so I can pipe GL_EXT_discard_framebuffer in fully as a follow-up. Depends on https://bugs.webkit.org/show_bug.cgi?id=104316 BUG= Review URL: https://chromiumcodereview.appspot.com/11474014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc5
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index 663fcbf..b5d0a65 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -745,7 +745,10 @@ void WebGraphicsContext3DInProcessImpl::discardFramebufferEXT(
WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) {
}
-void WebGraphicsContext3DInProcessImpl::ensureFramebufferCHROMIUM() {
+void WebGraphicsContext3DInProcessImpl::discardBackbufferCHROMIUM() {
+}
+
+void WebGraphicsContext3DInProcessImpl::ensureBackbufferCHROMIUM() {
}
void WebGraphicsContext3DInProcessImpl::copyTextureToParentTextureCHROMIUM(
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index bd36c99..7bfe980 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
@@ -117,7 +117,8 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessImpl :
virtual void discardFramebufferEXT(WGC3Denum target,
WGC3Dsizei numAttachments,
const WGC3Denum* attachments);
- virtual void ensureFramebufferCHROMIUM();
+ virtual void discardBackbufferCHROMIUM();
+ virtual void ensureBackbufferCHROMIUM();
virtual void copyTextureToParentTextureCHROMIUM(
WebGLId texture, WebGLId parentTexture);