OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 int32 route_id, | 87 int32 route_id, |
88 gfx::Size size); | 88 gfx::Size size); |
89 #endif | 89 #endif |
90 | 90 |
91 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info); | 91 void OnGraphicsInfoCollected(const content::GPUInfo& gpu_info); |
92 | 92 |
93 void OnAcceleratedSurfaceBuffersSwapped( | 93 void OnAcceleratedSurfaceBuffersSwapped( |
94 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 94 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
95 void OnAcceleratedSurfacePostSubBuffer( | 95 void OnAcceleratedSurfacePostSubBuffer( |
96 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); | 96 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); |
| 97 void OnAcceleratedSurfaceSuspend(int32 surface_id); |
97 | 98 |
98 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 99 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
99 void OnAcceleratedSurfaceNew( | 100 void OnAcceleratedSurfaceNew( |
100 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); | 101 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); |
101 #endif | 102 #endif |
102 | 103 |
103 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 104 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
104 void OnAcceleratedSurfaceRelease( | 105 void OnAcceleratedSurfaceRelease( |
105 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); | 106 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); |
106 #endif | 107 #endif |
107 | 108 |
108 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. | 109 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. |
109 int host_id_; | 110 int host_id_; |
110 }; | 111 }; |
111 | 112 |
112 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ | 113 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ |
OLD | NEW |