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