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 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // Message handlers. | 85 // Message handlers. |
86 bool OnControlMessageReceived(const IPC::Message& message); | 86 bool OnControlMessageReceived(const IPC::Message& message); |
87 | 87 |
88 void OnLogMessage(int level, const std::string& header, | 88 void OnLogMessage(int level, const std::string& header, |
89 const std::string& message); | 89 const std::string& message); |
90 #if defined(TOOLKIT_USES_GTK) && !defined(UI_COMPOSITOR_IMAGE_TRANSPORT) || \ | 90 #if defined(TOOLKIT_USES_GTK) && !defined(UI_COMPOSITOR_IMAGE_TRANSPORT) || \ |
91 defined(OS_WIN) | 91 defined(OS_WIN) |
92 void OnResizeView(int32 renderer_id, | 92 void OnResizeView(int32 renderer_id, |
93 int32 render_view_id, | 93 int32 render_view_id, |
94 int32 command_buffer_route_id, | 94 int32 route_id, |
95 gfx::Size size); | 95 gfx::Size size); |
96 #endif | 96 #endif |
97 | 97 |
| 98 void OnAcceleratedSurfaceBuffersSwapped( |
| 99 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| 100 |
98 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 101 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
99 void OnAcceleratedSurfaceNew( | 102 void OnAcceleratedSurfaceNew( |
100 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); | 103 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); |
101 void OnAcceleratedSurfaceBuffersSwapped( | |
102 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | |
103 #endif | 104 #endif |
104 | 105 |
105 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 106 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
106 void OnAcceleratedSurfaceRelease( | 107 void OnAcceleratedSurfaceRelease( |
107 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); | 108 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); |
108 #endif | 109 #endif |
109 | 110 |
110 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 111 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
111 int host_id_; | 112 int host_id_; |
112 }; | 113 }; |
113 | 114 |
114 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 115 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
OLD | NEW |