| OLD | NEW |
| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 Display* display() const { return display_; } | 30 Display* display() const { return display_; } |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // ChildThread overrides. | 34 // ChildThread overrides. |
| 35 virtual void OnControlMessageReceived(const IPC::Message& msg); | 35 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 36 | 36 |
| 37 // Message handlers. | 37 // Message handlers. |
| 38 void OnEstablishChannel(int renderer_id); | 38 void OnEstablishChannel(int renderer_id); |
| 39 void OnSynchronize(int renderer_id); | 39 void OnSynchronize(); |
| 40 void OnNewRenderWidgetHostView(GpuNativeWindowHandle parent_window, | 40 void OnNewRenderWidgetHostView(GpuNativeWindowHandle parent_window, |
| 41 int32 routing_id); | 41 int32 routing_id); |
| 42 | 42 |
| 43 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; | 43 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; |
| 44 GpuChannelMap gpu_channels_; | 44 GpuChannelMap gpu_channels_; |
| 45 | 45 |
| 46 #if defined(GPU_USE_GLX) | 46 #if defined(GPU_USE_GLX) |
| 47 Display* display_; | 47 Display* display_; |
| 48 scoped_ptr<GpuBackingStoreGLXContext> glx_context_; | 48 scoped_ptr<GpuBackingStoreGLXContext> glx_context_; |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(GpuThread); | 51 DISALLOW_COPY_AND_ASSIGN(GpuThread); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_GPU_GPU_THREAD_H_ | 54 #endif // CHROME_GPU_GPU_THREAD_H_ |
| OLD | NEW |