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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: first cut of IPC version Created 9 years, 2 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/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 2fe7604ef24e5cb0e1b0e74193048f22c4b24c6c..80710c9232349385276dadc98453340ff0695cac 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -106,6 +106,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()
@@ -497,4 +499,8 @@ void GpuCommandBufferStub::OnDestroyVideoDecoder(int decoder_route_id) {
video_decoders_.Remove(decoder_route_id);
}
+void GpuCommandBufferStub::OnSetSurfaceVisible(bool visible) {
+ surface_->OnSetSurfaceVisible(visible);
+}
+
#endif // defined(ENABLE_GPU)

Powered by Google App Engine
This is Rietveld 408576698