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

Side by Side Diff: chrome/gpu/gpu_thread.h

Issue 4399003: Deleted code associated with --enable-gpu-rendering and... (Closed) Base URL: svn://svn.chromium.org/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/gpu/gpu_config.h ('k') | chrome/gpu/gpu_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_GPU_GPU_THREAD_H_ 5 #ifndef CHROME_GPU_GPU_THREAD_H_
6 #define CHROME_GPU_GPU_THREAD_H_ 6 #define CHROME_GPU_GPU_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/common/child_thread.h" 12 #include "chrome/common/child_thread.h"
13 #include "chrome/common/gpu_native_window_handle.h"
14 #include "chrome/gpu/gpu_channel.h" 13 #include "chrome/gpu/gpu_channel.h"
15 #include "chrome/gpu/gpu_config.h" 14 #include "chrome/gpu/gpu_config.h"
16 #include "chrome/gpu/x_util.h" 15 #include "chrome/gpu/x_util.h"
17 #include "gfx/native_widget_types.h" 16 #include "gfx/native_widget_types.h"
18 17
19 #if defined(GPU_USE_GLX)
20 class GpuBackingStoreGLXContext;
21 #endif
22
23 class GpuThread : public ChildThread { 18 class GpuThread : public ChildThread {
24 public: 19 public:
25 GpuThread(); 20 GpuThread();
26 ~GpuThread(); 21 ~GpuThread();
27 22
28 #if defined(GPU_USE_GLX)
29 GpuBackingStoreGLXContext* GetGLXContext();
30
31 Display* display() const { return display_; }
32 #endif
33
34 // Remove the channel for a particular renderer. 23 // Remove the channel for a particular renderer.
35 void RemoveChannel(int renderer_id); 24 void RemoveChannel(int renderer_id);
36 25
37 private: 26 private:
38 // ChildThread overrides. 27 // ChildThread overrides.
39 virtual void OnControlMessageReceived(const IPC::Message& msg); 28 virtual void OnControlMessageReceived(const IPC::Message& msg);
40 29
41 // Message handlers. 30 // Message handlers.
42 void OnEstablishChannel(int renderer_id); 31 void OnEstablishChannel(int renderer_id);
43 void OnSynchronize(); 32 void OnSynchronize();
44 void OnCollectGraphicsInfo(); 33 void OnCollectGraphicsInfo();
45 void OnCrash(); 34 void OnCrash();
46 void OnHang(); 35 void OnHang();
47 void OnNewRenderWidgetHostView(GpuNativeWindowHandle parent_window,
48 int32 routing_id);
49 36
50 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; 37 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap;
51 GpuChannelMap gpu_channels_; 38 GpuChannelMap gpu_channels_;
52 39
53 #if defined(GPU_USE_GLX)
54 Display* display_;
55 scoped_ptr<GpuBackingStoreGLXContext> glx_context_;
56 #endif
57
58 DISALLOW_COPY_AND_ASSIGN(GpuThread); 40 DISALLOW_COPY_AND_ASSIGN(GpuThread);
59 }; 41 };
60 42
61 #endif // CHROME_GPU_GPU_THREAD_H_ 43 #endif // CHROME_GPU_GPU_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_config.h ('k') | chrome/gpu/gpu_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698