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

Unified Diff: chrome/gpu/gpu_command_buffer_stub.cc

Issue 5275009: Defer window destruction until GPU finished drawing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with reference counting. Created 10 years, 1 month 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 | « chrome/common/gpu_messages_internal.h ('k') | gfx/gtk_native_view_id_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_command_buffer_stub.cc
diff --git a/chrome/gpu/gpu_command_buffer_stub.cc b/chrome/gpu/gpu_command_buffer_stub.cc
index 3c87c998fb5b52b1d637ca1397e188238b2501cf..6112782c616de00bd015e452f552b1375ef0a50b 100644
--- a/chrome/gpu/gpu_command_buffer_stub.cc
+++ b/chrome/gpu/gpu_command_buffer_stub.cc
@@ -159,6 +159,10 @@ GpuCommandBufferStub::~GpuCommandBufferStub() {
DestroyWindow(static_cast<HWND>(compositor_window_));
compositor_window_ = NULL;
}
+#elif defined(OS_LINUX)
+ ChildThread* gpu_thread = ChildThread::current();
+ gpu_thread->Send(
+ new GpuHostMsg_ReleaseXID(handle_));
#endif
}
« no previous file with comments | « chrome/common/gpu_messages_internal.h ('k') | gfx/gtk_native_view_id_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698