Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index 2f8019a2b802a433bda98024fb2d3ae4177f31f8..c296b4d8a2c35e1c74a9832abfd7b7ec43c21bd4 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -108,6 +108,8 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { |
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 @@ void GpuCommandBufferStub::OnDestroyVideoDecoder(int decoder_route_id) { |
video_decoders_.Remove(decoder_route_id); |
} |
+void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) { |
+ surface_->SetVisible(visible); |
+} |
+ |
#endif // defined(ENABLE_GPU) |