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

Unified Diff: chrome/gpu/gpu_thread.cc

Issue 5017004: Call GpuThread::Init before starting the GPU watchdog thread.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/gpu/gpu_main.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_thread.cc
===================================================================
--- chrome/gpu/gpu_thread.cc (revision 66188)
+++ chrome/gpu/gpu_thread.cc (working copy)
@@ -21,25 +21,7 @@
#include "app/win_util.h"
#endif
-#if defined(TOOLKIT_USES_GTK)
-#include <gtk/gtk.h>
-#include "app/x11_util.h"
-#include "gfx/gtk_util.h"
-#endif
-
GpuThread::GpuThread() {
-#if defined(OS_LINUX)
- {
- // The X11 port of the command buffer code assumes it can access the X
- // display via the macro GDK_DISPLAY(), which implies that Gtk has been
- // initialized. This code was taken from PluginThread. TODO(kbr):
- // rethink whether initializing Gtk is really necessary or whether we
- // should just send a raw display connection down to the GPUProcessor.
- g_thread_init(NULL);
- gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
- x11_util::SetDefaultX11ErrorHandlers();
- }
-#endif
}
GpuThread::~GpuThread() {
« no previous file with comments | « chrome/gpu/gpu_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698