Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 863f07c3bd8e851f028d658599daf677b3234c87..9fa7afce71ae34da1c88e7f05e7de2038d8e9357 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -458,6 +458,17 @@ void WebGraphicsContext3DCommandBufferImpl::setVisibilityCHROMIUM(
gl_->FreeEverything();
}
+void WebGraphicsContext3DCommandBufferImpl::discardFramebufferEXT(
+ WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) {
+ gl_->Flush();
+ context_->DiscardBackbuffer();
+}
+
+void WebGraphicsContext3DCommandBufferImpl::ensureFramebufferCHROMIUM() {
+ gl_->Flush();
+ context_->EnsureBackbuffer();
+}
+
void WebGraphicsContext3DCommandBufferImpl::
setMemoryAllocationChangedCallbackCHROMIUM(
WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) {
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698