| 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_BROWSER_RENDERER_HOST_GPU_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_GPU_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_GPU_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_GPU_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/common/gpu_native_window_handle.h" | 9 #include "chrome/common/gpu_native_window_handle.h" |
| 10 | 10 |
| 11 class BackingStore; | 11 class BackingStore; |
| 12 class GpuProcessHost; | 12 class GpuProcessHostUIShim; |
| 13 class RenderWidgetHost; | 13 class RenderWidgetHost; |
| 14 class VideoLayer; | 14 class VideoLayer; |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 class Size; | 17 class Size; |
| 18 } | 18 } |
| 19 | 19 |
| 20 // A proxy for the GPU process' window for rendering pages. | 20 // A proxy for the GPU process' window for rendering pages. |
| 21 class GpuViewHost { | 21 class GpuViewHost { |
| 22 public: | 22 public: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Notification that the RenderWidgetHost has been asked to paint the window. | 34 // Notification that the RenderWidgetHost has been asked to paint the window. |
| 35 // Depending on the backing store, the GPU backing store may have to repaint | 35 // Depending on the backing store, the GPU backing store may have to repaint |
| 36 // at this time. On Linux this is needed because the GPU process paints | 36 // at this time. On Linux this is needed because the GPU process paints |
| 37 // directly into the RWH's X window. | 37 // directly into the RWH's X window. |
| 38 void OnWindowPainted(); | 38 void OnWindowPainted(); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 RenderWidgetHost* widget_; | 41 RenderWidgetHost* widget_; |
| 42 | 42 |
| 43 GpuProcessHost* process_; | 43 GpuProcessHostUIShim* process_shim_; |
| 44 int32 routing_id_; | 44 int32 routing_id_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(GpuViewHost); | 46 DISALLOW_COPY_AND_ASSIGN(GpuViewHost); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_RENDERER_HOST_GPU_VIEW_HOST_H_ | 49 #endif // CHROME_BROWSER_RENDERER_HOST_GPU_VIEW_HOST_H_ |
| OLD | NEW |