From 638235b0ef2c3e12f6ceecf05f89caf46b311d81 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 26 Jan 2010 06:54:06 +0000 Subject: 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 --- chrome/gpu/gpu_thread.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'chrome/gpu/gpu_thread.cc') 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(); -- cgit v1.1