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) { |