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

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

Issue 11474014: Rename discardFramebufferEXT to discardBackbufferCHROMIUM to avoid collision with real discardFrame… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: back out accidental change to compositor_impl_android.cc Created 8 years 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 0c2bdbabe85a37780ec91b7ed8bb7abc887d755b..e8efc39535b77eccf7ae20dbaa992f82f1ac904d 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -682,11 +682,16 @@ void WebGraphicsContext3DCommandBufferImpl::setVisibilityCHROMIUM(
void WebGraphicsContext3DCommandBufferImpl::discardFramebufferEXT(
WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) {
+ // TODO(jamesr): Call the real function when it exists on GLES2Implementation.
+ // gl_->DiscardFramebufferEXT(target, numAttachments, attachments);
+}
+
+void WebGraphicsContext3DCommandBufferImpl::discardBackbufferCHROMIUM() {
gl_->Flush();
command_buffer_->DiscardBackbuffer();
}
-void WebGraphicsContext3DCommandBufferImpl::ensureFramebufferCHROMIUM() {
+void WebGraphicsContext3DCommandBufferImpl::ensureBackbufferCHROMIUM() {
gl_->Flush();
command_buffer_->EnsureBackbuffer();
}
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698