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

Unified Diff: chrome/gpu/gpu_channel.cc

Issue 6340004: Linux: --single-process with GPU acceleration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try rebasing off of ToT. Created 9 years, 11 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
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_channel.cc
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index 3ff6da24950894102f8668de61a5b89db5e06cd2..1c077933d7381528e1d41066384a9724f00de349 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -141,13 +141,8 @@ void GpuChannel::OnCreateViewCommandBuffer(
// "render target" the GpuCommandBufferStub targets.
handle = gfx::NativeViewFromId(view_id);
#elif defined(OS_LINUX)
- ChildThread* gpu_thread = ChildThread::current();
// Ask the browser for the view's XID.
- // TODO(piman): This assumes that it doesn't change. It can change however
- // when tearing off tabs. This needs a fix in the browser UI code. A possible
- // alternative would be to add a socket/plug pair like with plugins but that
- // has issues with events and focus.
- gpu_thread->Send(new GpuHostMsg_GetViewXID(view_id, &handle));
+ gpu_thread_->Send(new GpuHostMsg_GetViewXID(view_id, &handle));
#elif defined(OS_MACOSX)
// On Mac OS X we currently pass a (fake) PluginWindowHandle for the
// NativeViewId. We could allocate fake NativeViewIds on the browser
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698