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_COMMON_GPU_GPU_CHANNEL_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 int32 render_view_id, | 94 int32 render_view_id, |
95 const GPUCreateCommandBufferConfig& init_params, | 95 const GPUCreateCommandBufferConfig& init_params, |
96 int32* route_id); | 96 int32* route_id); |
97 | 97 |
98 void ViewResized(int32 command_buffer_route_id); | 98 void ViewResized(int32 command_buffer_route_id); |
99 | 99 |
100 gfx::GLShareGroup* share_group() const { return share_group_.get(); } | 100 gfx::GLShareGroup* share_group() const { return share_group_.get(); } |
101 | 101 |
102 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); | 102 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); |
103 | 103 |
104 #if defined(TOUCH_UI) | 104 #if defined(OS_MACOSX) |
105 virtual void AcceleratedSurfaceIOSurfaceSet( | |
106 int32 route_id, uint64 surface_id); | |
107 virtual void AcceleratedSurfaceReleased( | |
108 int32 route_id, uint64 surface_id); | |
109 #endif | |
110 | |
111 #if defined(OS_MACOSX) || defined(TOUCH_UI) | |
112 virtual void AcceleratedSurfaceBuffersSwapped( | 105 virtual void AcceleratedSurfaceBuffersSwapped( |
113 int32 route_id, uint64 swap_buffers_count); | 106 int32 route_id, uint64 swap_buffers_count); |
114 #endif | |
115 | |
116 #if defined(OS_MACOSX) | |
117 void DestroyCommandBufferByViewId(int32 render_view_id); | 107 void DestroyCommandBufferByViewId(int32 render_view_id); |
118 #endif | 108 #endif |
119 | 109 |
120 void LoseAllContexts(); | 110 void LoseAllContexts(); |
121 | 111 |
122 // Destroy channel and all contained contexts. | 112 // Destroy channel and all contained contexts. |
123 void DestroySoon(); | 113 void DestroySoon(); |
124 | 114 |
125 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID. | 115 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID. |
126 virtual gfx::GLSurface* LookupSurface(int surface_id); | 116 virtual gfx::GLSurface* LookupSurface(int surface_id); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 gpu::gles2::DisallowedExtensions disallowed_extensions_; | 193 gpu::gles2::DisallowedExtensions disallowed_extensions_; |
204 GpuWatchdog* watchdog_; | 194 GpuWatchdog* watchdog_; |
205 bool software_; | 195 bool software_; |
206 | 196 |
207 ScopedRunnableMethodFactory<GpuChannel> task_factory_; | 197 ScopedRunnableMethodFactory<GpuChannel> task_factory_; |
208 | 198 |
209 DISALLOW_COPY_AND_ASSIGN(GpuChannel); | 199 DISALLOW_COPY_AND_ASSIGN(GpuChannel); |
210 }; | 200 }; |
211 | 201 |
212 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ | 202 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ |
OLD | NEW |