Adding gl command to change surface visibility, so that the gpu process can appropriately release/reacquire resources.

BUG=5175544
TEST=None


Review URL: http://codereview.chromium.org/7890046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105563 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 2f8019a2..c296b4d 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -108,6 +108,8 @@
                                     OnCreateVideoDecoder)
     IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DestroyVideoDecoder,
                         OnDestroyVideoDecoder)
+    IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetSurfaceVisible,
+                        OnSetSurfaceVisible)
     IPC_MESSAGE_UNHANDLED(handled = false)
   IPC_END_MESSAGE_MAP()
 
@@ -507,4 +509,8 @@
   video_decoders_.Remove(decoder_route_id);
 }
 
+void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) {
+  surface_->SetVisible(visible);
+}
+
 #endif  // defined(ENABLE_GPU)