summaryrefslogtreecommitdiffstats
path: root/webkit/gpu
diff options
context:
space:
mode:
authormmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 16:17:40 +0000
committermmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 16:17:40 +0000
commit251622ee902832d8a7f9aa34896cbbf7c56e2ac5 (patch)
tree26599c614abe4e3e12fef680776356078dd626b6 /webkit/gpu
parent595b52a3cb8b04192f47ac0039ac0a816b034b40 (diff)
downloadchromium_src-251622ee902832d8a7f9aa34896cbbf7c56e2ac5.zip
chromium_src-251622ee902832d8a7f9aa34896cbbf7c56e2ac5.tar.gz
chromium_src-251622ee902832d8a7f9aa34896cbbf7c56e2ac5.tar.bz2
Chromium implementation of discardBackbuffer WebGraphicsContext3D extension.
Webkit side patch: https://bugs.webkit.org/show_bug.cgi?id=81383 BUG=116049 TEST=Manual Review URL: http://codereview.chromium.org/9699125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc13
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h7
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc12
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.h7
4 files changed, 37 insertions, 2 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index f729b92..7d9c0a2 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -810,6 +810,19 @@ void WebGraphicsContext3DInProcessCommandBufferImpl::setVisibilityCHROMIUM(
}
void WebGraphicsContext3DInProcessCommandBufferImpl::
+ setMemoryAllocationChangedCallbackCHROMIUM(
+ WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) {
+}
+
+void WebGraphicsContext3DInProcessCommandBufferImpl::discardFramebufferEXT(
+ WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) {
+}
+
+void WebGraphicsContext3DInProcessCommandBufferImpl::
+ ensureFramebufferCHROMIUM() {
+}
+
+void WebGraphicsContext3DInProcessCommandBufferImpl::
copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) {
NOTIMPLEMENTED();
}
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
index ea69865..947b6d9 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
@@ -424,7 +424,12 @@ class WebGraphicsContext3DInProcessCommandBufferImpl
virtual void setVisibilityCHROMIUM(bool visible);
virtual void setMemoryAllocationChangedCallbackCHROMIUM(
- WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { }
+ WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback);
+
+ virtual void discardFramebufferEXT(WGC3Denum target,
+ WGC3Dsizei numAttachments,
+ const WGC3Denum* attachments);
+ virtual void ensureFramebufferCHROMIUM();
virtual void copyTextureToParentTextureCHROMIUM(
WebGLId texture, WebGLId parentTexture);
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index 0a331f4..6fefa74 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -729,6 +729,18 @@ void WebGraphicsContext3DInProcessImpl::unmapTexSubImage2DCHROMIUM(
void WebGraphicsContext3DInProcessImpl::setVisibilityCHROMIUM(bool visible) {
}
+void WebGraphicsContext3DInProcessImpl::
+ setMemoryAllocationChangedCallbackCHROMIUM(
+ WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) {
+}
+
+void WebGraphicsContext3DInProcessImpl::discardFramebufferEXT(
+ WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) {
+}
+
+void WebGraphicsContext3DInProcessImpl::ensureFramebufferCHROMIUM() {
+}
+
void WebGraphicsContext3DInProcessImpl::copyTextureToParentTextureCHROMIUM(
WebGLId id, WebGLId id2) {
NOTIMPLEMENTED();
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index a26a6ba..8c13ed0 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
@@ -108,7 +108,12 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D {
virtual void setVisibilityCHROMIUM(bool visible);
virtual void setMemoryAllocationChangedCallbackCHROMIUM(
- WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { }
+ WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback);
+
+ virtual void discardFramebufferEXT(WGC3Denum target,
+ WGC3Dsizei numAttachments,
+ const WGC3Denum* attachments);
+ virtual void ensureFramebufferCHROMIUM();
virtual void copyTextureToParentTextureCHROMIUM(
WebGLId texture, WebGLId parentTexture);