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_GPU_PROCESS_HOST_UI_SHIM_H_ | 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This class lives on the UI thread and supports classes like the | 9 // This class lives on the UI thread and supports classes like the |
10 // BackingStoreProxy, which must live on the UI thread. The IO thread | 10 // BackingStoreProxy, which must live on the UI thread. The IO thread |
11 // portion of this class, the GpuProcessHost, is responsible for | 11 // portion of this class, the GpuProcessHost, is responsible for |
12 // shuttling messages between the browser and GPU processes. | 12 // shuttling messages between the browser and GPU processes. |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <queue> | 15 #include <queue> |
16 | 16 |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/linked_ptr.h" | 18 #include "base/linked_ptr.h" |
19 #include "base/process.h" | 19 #include "base/process.h" |
20 #include "base/scoped_ptr.h" | 20 #include "base/scoped_ptr.h" |
21 #include "base/singleton.h" | 21 #include "base/singleton.h" |
22 #include "base/threading/non_thread_safe.h" | 22 #include "base/threading/non_thread_safe.h" |
23 #include "chrome/common/gpu_feature_flags.h" | 23 #include "content/common/gpu_feature_flags.h" |
24 #include "content/common/gpu_info.h" | 24 #include "content/common/gpu_info.h" |
25 #include "content/common/message_router.h" | 25 #include "content/common/message_router.h" |
26 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
27 | 27 |
28 namespace gfx { | 28 namespace gfx { |
29 class Size; | 29 class Size; |
30 } | 30 } |
31 | 31 |
32 class GpuDataManager; | 32 class GpuDataManager; |
33 struct GPUCreateCommandBufferConfig; | 33 struct GPUCreateCommandBufferConfig; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // with it. Multimap is used to simulate reference counting, see comment in | 182 // with it. Multimap is used to simulate reference counting, see comment in |
183 // GpuProcessHostUIShim::CreateViewCommandBuffer. | 183 // GpuProcessHostUIShim::CreateViewCommandBuffer. |
184 class ViewSurface; | 184 class ViewSurface; |
185 typedef std::multimap<ViewID, linked_ptr<ViewSurface> > ViewSurfaceMap; | 185 typedef std::multimap<ViewID, linked_ptr<ViewSurface> > ViewSurfaceMap; |
186 ViewSurfaceMap acquired_surfaces_; | 186 ViewSurfaceMap acquired_surfaces_; |
187 | 187 |
188 }; | 188 }; |
189 | 189 |
190 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 190 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
191 | 191 |
OLD | NEW |