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

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

Issue 9910004: Implement Discard and EnsureBackbufferCHROMIUM using command buffer instead of IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/common/gpu/client/content_gl_context.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 062c39204ac326aa6fbfa11f4b0d6bb4b6df54dc..6eeaaf66950432ad61948fc5d74900fbb824d568 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -456,13 +456,11 @@ void WebGraphicsContext3DCommandBufferImpl::setVisibilityCHROMIUM(
void WebGraphicsContext3DCommandBufferImpl::discardFramebufferEXT(
WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) {
- gl_->Flush();
- context_->DiscardBackbuffer();
+ gl_->DiscardBackbufferCHROMIUM();
}
void WebGraphicsContext3DCommandBufferImpl::ensureFramebufferCHROMIUM() {
- gl_->Flush();
- context_->EnsureBackbuffer();
+ gl_->EnsureBackbufferCHROMIUM();
}
void WebGraphicsContext3DCommandBufferImpl::
@@ -1269,4 +1267,3 @@ void WebGraphicsContext3DCommandBufferImpl::OnErrorMessage(
error_message_callback_->onErrorMessage(str, id);
}
}
-
« no previous file with comments | « content/common/gpu/client/content_gl_context.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698