| 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_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
| 168 void OnAcceleratedSurfaceBuffersSwapped( | 168 void OnAcceleratedSurfaceBuffersSwapped( |
| 169 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | 169 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); |
| 170 void OnAcceleratedSurfacePostSubBuffer( | 170 void OnAcceleratedSurfacePostSubBuffer( |
| 171 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); | 171 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); |
| 172 void OnAcceleratedSurfaceSuspend(int32 surface_id); | 172 void OnAcceleratedSurfaceSuspend(int32 surface_id); |
| 173 void OnAcceleratedSurfaceRelease( | 173 void OnAcceleratedSurfaceRelease( |
| 174 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); | 174 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); |
| 175 #endif | 175 #endif |
| 176 | 176 |
| 177 void CreateChannelCache(int32 client_id, size_t cache_size); | 177 void CreateChannelCache(int32 client_id); |
| 178 void OnDestroyChannel(int32 client_id); | 178 void OnDestroyChannel(int32 client_id); |
| 179 void OnCacheShader(int32 client_id, const std::string& key, | 179 void OnCacheShader(int32 client_id, const std::string& key, |
| 180 const std::string& shader); | 180 const std::string& shader); |
| 181 | 181 |
| 182 bool LaunchGpuProcess(const std::string& channel_id); | 182 bool LaunchGpuProcess(const std::string& channel_id); |
| 183 | 183 |
| 184 void SendOutstandingReplies(); | 184 void SendOutstandingReplies(); |
| 185 | 185 |
| 186 void BlockLiveOffscreenContexts(); | 186 void BlockLiveOffscreenContexts(); |
| 187 | 187 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > | 264 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > |
| 265 SurfaceRefMap; | 265 SurfaceRefMap; |
| 266 SurfaceRefMap surface_refs_; | 266 SurfaceRefMap surface_refs_; |
| 267 | 267 |
| 268 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 268 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace content | 271 } // namespace content |
| 272 | 272 |
| 273 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 273 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |