diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 06:54:06 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-26 06:54:06 +0000 |
commit | 638235b0ef2c3e12f6ceecf05f89caf46b311d81 (patch) | |
tree | b676ad477a68bad89cd6a35dff9d4e791cef5692 /chrome/gpu/gpu_thread.cc | |
parent | 48c27f7fac6bb5cf9cc995df8a68d4f6d4c10600 (diff) | |
download | chromium_src-638235b0ef2c3e12f6ceecf05f89caf46b311d81.zip chromium_src-638235b0ef2c3e12f6ceecf05f89caf46b311d81.tar.gz chromium_src-638235b0ef2c3e12f6ceecf05f89caf46b311d81.tar.bz2 |
Fix the ARM build which can't find OpenGL. This adds a new define which I use
to detect X and GL related build options. On ARM, this means we don't compile
the accelerated backing store even though its Linux.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/546144
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu/gpu_thread.cc')
-rw-r--r-- | chrome/gpu/gpu_thread.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/gpu/gpu_thread.cc b/chrome/gpu/gpu_thread.cc index 4845b3a..4c9a974 100644 --- a/chrome/gpu/gpu_thread.cc +++ b/chrome/gpu/gpu_thread.cc @@ -6,10 +6,11 @@ #include "build/build_config.h" #include "chrome/common/gpu_messages.h" +#include "chrome/gpu/gpu_config.h" #if defined(OS_WIN) #include "chrome/gpu/gpu_view_win.h" -#elif defined(OS_LINUX) +#elif defined(GPU_USE_GLX) #include "chrome/gpu/gpu_backing_store_glx_context.h" #include "chrome/gpu/gpu_view_x.h" @@ -17,7 +18,7 @@ #endif GpuThread::GpuThread() { -#if defined(OS_LINUX) +#if defined(GPU_USE_GLX) display_ = ::XOpenDisplay(NULL); #endif } @@ -25,7 +26,7 @@ GpuThread::GpuThread() { GpuThread::~GpuThread() { } -#if defined(OS_LINUX) +#if defined(GPU_USE_GLX) GpuBackingStoreGLXContext* GpuThread::GetGLXContext() { if (!glx_context_.get()) glx_context_.reset(new GpuBackingStoreGLXContext(this)); @@ -48,7 +49,7 @@ void GpuThread::OnNewRenderWidgetHostView(GpuNativeWindowHandle parent_window, // lifetime of this object. #if defined(OS_WIN) new GpuViewWin(this, parent_window, routing_id); -#elif defined(OS_LINUX) +#elif defined(GPU_USE_GLX) new GpuViewX(this, parent_window, routing_id); #else NOTIMPLEMENTED(); |