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

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

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (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
Index: content/common/gpu/client/content_gl_context.cc
diff --git a/content/common/gpu/client/content_gl_context.cc b/content/common/gpu/client/content_gl_context.cc
index 9e090768b369358a98a7befb3e9de6acede86077..3ee10af4232b142f35338a0e698e4c89e1030045 100644
--- a/content/common/gpu/client/content_gl_context.cc
+++ b/content/common/gpu/client/content_gl_context.cc
@@ -279,6 +279,14 @@ bool ContentGLContext::SetSurfaceVisible(bool visible) {
return GetCommandBufferProxy()->SetSurfaceVisible(visible);
}
+bool ContentGLContext::DiscardBackbuffer() {
+ return GetCommandBufferProxy()->DiscardBackbuffer();
+}
+
+bool ContentGLContext::EnsureBackbuffer() {
+ return GetCommandBufferProxy()->EnsureBackbuffer();
+}
+
void ContentGLContext::SetMemoryAllocationChangedCallback(
const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
callback) {

Powered by Google App Engine
This is Rietveld 408576698