OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 6 #define CONTENT_BROWSER_GPU_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 <string> | 14 #include <string> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/task.h" | 17 #include "base/task.h" |
18 #include "base/memory/linked_ptr.h" | 18 #include "base/memory/linked_ptr.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
22 #include "content/common/message_router.h" | 22 #include "content/common/message_router.h" |
23 | 23 |
24 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 24 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
| 25 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
25 struct GpuHostMsg_AcceleratedSurfaceNew_Params; | 26 struct GpuHostMsg_AcceleratedSurfaceNew_Params; |
26 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; | 27 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; |
27 | 28 |
28 namespace gfx { | 29 namespace gfx { |
29 class Size; | 30 class Size; |
30 } | 31 } |
31 | 32 |
32 namespace IPC { | 33 namespace IPC { |
33 class Message; | 34 class Message; |
34 } | 35 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const std::string& message); | 90 const std::string& message); |
90 #if defined(TOOLKIT_USES_GTK) || defined(OS_WIN) | 91 #if defined(TOOLKIT_USES_GTK) || defined(OS_WIN) |
91 void OnResizeView(int32 renderer_id, | 92 void OnResizeView(int32 renderer_id, |
92 int32 render_view_id, | 93 int32 render_view_id, |
93 int32 route_id, | 94 int32 route_id, |
94 gfx::Size size); | 95 gfx::Size size); |
95 #endif | 96 #endif |
96 | 97 |
97 void OnAcceleratedSurfaceBuffersSwapped( | 98 void OnAcceleratedSurfaceBuffersSwapped( |
98 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 99 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| 100 void OnAcceleratedSurfacePostSubBuffer( |
| 101 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); |
99 | 102 |
100 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 103 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
101 void OnAcceleratedSurfaceNew( | 104 void OnAcceleratedSurfaceNew( |
102 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); | 105 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); |
103 #endif | 106 #endif |
104 | 107 |
105 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 108 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
106 void OnAcceleratedSurfaceRelease( | 109 void OnAcceleratedSurfaceRelease( |
107 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); | 110 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); |
108 #endif | 111 #endif |
109 | 112 |
110 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 113 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
111 int host_id_; | 114 int host_id_; |
112 }; | 115 }; |
113 | 116 |
114 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 117 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
OLD | NEW |