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 "chrome/common/gpu_feature_flags.h" |
24 #include "chrome/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; |
34 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; | 34 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Encapsulates surfaces that we acquire when creating view command buffers. | 179 // Encapsulates surfaces that we acquire when creating view command buffers. |
180 // We assume that a render view has at most 1 such surface associated | 180 // We assume that a render view has at most 1 such surface associated |
181 // with it. | 181 // with it. |
182 class ViewSurface; | 182 class ViewSurface; |
183 std::map<ViewID, linked_ptr<ViewSurface> > acquired_surfaces_; | 183 std::map<ViewID, linked_ptr<ViewSurface> > acquired_surfaces_; |
184 | 184 |
185 }; | 185 }; |
186 | 186 |
187 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ | 187 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ |
188 | 188 |
OLD | NEW |