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

Unified Diff: content/common/gpu/client/command_buffer_proxy.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
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.h ('k') | content/common/gpu/client/content_gl_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/command_buffer_proxy.cc
diff --git a/content/common/gpu/client/command_buffer_proxy.cc b/content/common/gpu/client/command_buffer_proxy.cc
index 4f6caa5f207b01840bf608cd9c46ac1d77625c0a..a59fdb7f6ac0c9232fd268edccc516bb3ea0898d 100644
--- a/content/common/gpu/client/command_buffer_proxy.cc
+++ b/content/common/gpu/client/command_buffer_proxy.cc
@@ -367,6 +367,20 @@ bool CommandBufferProxy::SetSurfaceVisible(bool visible) {
return Send(new GpuCommandBufferMsg_SetSurfaceVisible(route_id_, visible));
}
+bool CommandBufferProxy::DiscardBackbuffer() {
+ if (last_state_.error != gpu::error::kNoError)
+ return false;
+
+ return Send(new GpuCommandBufferMsg_DiscardBackbuffer(route_id_));
+}
+
+bool CommandBufferProxy::EnsureBackbuffer() {
+ if (last_state_.error != gpu::error::kNoError)
+ return false;
+
+ return Send(new GpuCommandBufferMsg_EnsureBackbuffer(route_id_));
+}
+
bool CommandBufferProxy::SetParent(CommandBufferProxy* parent_command_buffer,
uint32 parent_texture_id) {
if (last_state_.error != gpu::error::kNoError)
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.h ('k') | content/common/gpu/client/content_gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698