summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_thread.cc
diff options
context:
space:
mode:
authorkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 17:05:31 +0000
committerkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-08 17:05:31 +0000
commit77128dec2b067b305b9f749aa8a703af0159b350 (patch)
treef6b237cb5cee5152dfd29a88747691936100dd26 /chrome/gpu/gpu_thread.cc
parentb61f4dbfaf2459e54203656e2d80588fbad1c931 (diff)
downloadchromium_src-77128dec2b067b305b9f749aa8a703af0159b350.zip
chromium_src-77128dec2b067b305b9f749aa8a703af0159b350.tar.gz
chromium_src-77128dec2b067b305b9f749aa8a703af0159b350.tar.bz2
Deleted code associated with --enable-gpu-rendering and
--enable-video-layering flags. With the introduction of accelerated compositing to Chromium this code is now obsolete, and it is causing problems and bug reports when users experiment with these flags. Tested on Linux in the following configurations: - Compositor on, CSS 3D content - Compositor on, HTML5 video content - Compositor off, HTML5 video content Also ran patch successfully through the try bots. BUG=54932 TEST=none Review URL: http://codereview.chromium.org/4399003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65383 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu/gpu_thread.cc')
-rw-r--r--chrome/gpu/gpu_thread.cc38
1 files changed, 1 insertions, 37 deletions
diff --git a/chrome/gpu/gpu_thread.cc b/chrome/gpu/gpu_thread.cc
index 554f864..3e4d25d 100644
--- a/chrome/gpu/gpu_thread.cc
+++ b/chrome/gpu/gpu_thread.cc
@@ -17,15 +17,6 @@
#include "chrome/gpu/gpu_info_collector.h"
#include "ipc/ipc_channel_handle.h"
-#if defined(OS_WIN)
-#include "chrome/gpu/gpu_view_win.h"
-#elif defined(GPU_USE_GLX)
-#include "chrome/gpu/gpu_backing_store_glx_context.h"
-#include "chrome/gpu/gpu_view_x.h"
-
-#include <X11/Xutil.h> // Must be last.
-#endif
-
#if defined(TOOLKIT_USES_GTK)
#include <gtk/gtk.h>
#include "app/x11_util.h"
@@ -33,16 +24,13 @@
#endif
GpuThread::GpuThread() {
-#if defined(GPU_USE_GLX)
- display_ = ::XOpenDisplay(NULL);
-#endif
#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 the display connection down to the GPUProcessor.
+ // should just send a raw display connection down to the GPUProcessor.
g_thread_init(NULL);
gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
x11_util::SetDefaultX11ErrorHandlers();
@@ -53,14 +41,6 @@ GpuThread::GpuThread() {
GpuThread::~GpuThread() {
}
-#if defined(GPU_USE_GLX)
-GpuBackingStoreGLXContext* GpuThread::GetGLXContext() {
- if (!glx_context_.get())
- glx_context_.reset(new GpuBackingStoreGLXContext(this));
- return glx_context_.get();
-}
-#endif
-
void GpuThread::RemoveChannel(int renderer_id) {
gpu_channels_.erase(renderer_id);
}
@@ -72,8 +52,6 @@ void GpuThread::OnControlMessageReceived(const IPC::Message& msg) {
OnEstablishChannel)
IPC_MESSAGE_HANDLER(GpuMsg_Synchronize,
OnSynchronize)
- IPC_MESSAGE_HANDLER(GpuMsg_NewRenderWidgetHostView,
- OnNewRenderWidgetHostView)
IPC_MESSAGE_HANDLER(GpuMsg_CollectGraphicsInfo,
OnCollectGraphicsInfo)
IPC_MESSAGE_HANDLER(GpuMsg_Crash,
@@ -128,20 +106,6 @@ void GpuThread::OnSynchronize() {
Send(new GpuHostMsg_SynchronizeReply());
}
-void GpuThread::OnNewRenderWidgetHostView(GpuNativeWindowHandle parent_window,
- int32 routing_id) {
- // The GPUView class' lifetime is controlled by the host, which will send a
- // message to destroy the GpuRWHView when necessary. So we don't manage the
- // lifetime of this object.
-#if defined(OS_WIN)
- new GpuViewWin(this, parent_window, routing_id);
-#elif defined(GPU_USE_GLX)
- new GpuViewX(this, parent_window, routing_id);
-#else
- NOTIMPLEMENTED();
-#endif
-}
-
void GpuThread::OnCollectGraphicsInfo() {
// Fail to establish a channel if some implementation of GL cannot be
// initialized.