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 12 matching lines...) Expand all Loading... |
23 #include "content/public/browser/gpu_data_manager.h" | 23 #include "content/public/browser/gpu_data_manager.h" |
24 #include "gpu/command_buffer/common/constants.h" | 24 #include "gpu/command_buffer/common/constants.h" |
25 #include "gpu/config/gpu_info.h" | 25 #include "gpu/config/gpu_info.h" |
26 #include "ipc/ipc_sender.h" | 26 #include "ipc/ipc_sender.h" |
27 #include "ipc/message_filter.h" | 27 #include "ipc/message_filter.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "ui/gfx/size.h" | 29 #include "ui/gfx/size.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 struct GPUCreateCommandBufferConfig; | 32 struct GPUCreateCommandBufferConfig; |
33 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | |
34 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | |
35 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; | |
36 | 33 |
37 namespace gfx { | 34 namespace gfx { |
38 struct GpuMemoryBufferHandle; | 35 struct GpuMemoryBufferHandle; |
39 } | 36 } |
40 | 37 |
41 namespace IPC { | 38 namespace IPC { |
42 struct ChannelHandle; | 39 struct ChannelHandle; |
43 } | 40 } |
44 | 41 |
45 namespace content { | 42 namespace content { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 void OnDestroyCommandBuffer(int32 surface_id); | 173 void OnDestroyCommandBuffer(int32 surface_id); |
177 void OnImageCreated(const gfx::Size size); | 174 void OnImageCreated(const gfx::Size size); |
178 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); | 175 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
179 void OnDidCreateOffscreenContext(const GURL& url); | 176 void OnDidCreateOffscreenContext(const GURL& url); |
180 void OnDidLoseContext(bool offscreen, | 177 void OnDidLoseContext(bool offscreen, |
181 gpu::error::ContextLostReason reason, | 178 gpu::error::ContextLostReason reason, |
182 const GURL& url); | 179 const GURL& url); |
183 void OnDidDestroyOffscreenContext(const GURL& url); | 180 void OnDidDestroyOffscreenContext(const GURL& url); |
184 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats); | 181 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats); |
185 #if defined(OS_MACOSX) | 182 #if defined(OS_MACOSX) |
186 void OnAcceleratedSurfaceBuffersSwapped( | 183 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message); |
187 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); | |
188 #endif | 184 #endif |
189 | 185 |
190 void CreateChannelCache(int32 client_id); | 186 void CreateChannelCache(int32 client_id); |
191 void OnDestroyChannel(int32 client_id); | 187 void OnDestroyChannel(int32 client_id); |
192 void OnCacheShader(int32 client_id, const std::string& key, | 188 void OnCacheShader(int32 client_id, const std::string& key, |
193 const std::string& shader); | 189 const std::string& shader); |
194 | 190 |
195 bool LaunchGpuProcess(const std::string& channel_id); | 191 bool LaunchGpuProcess(const std::string& channel_id); |
196 | 192 |
197 void SendOutstandingReplies(); | 193 void SendOutstandingReplies(); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > | 275 typedef std::multimap<int, scoped_refptr<GpuSurfaceTracker::SurfaceRef> > |
280 SurfaceRefMap; | 276 SurfaceRefMap; |
281 SurfaceRefMap surface_refs_; | 277 SurfaceRefMap surface_refs_; |
282 | 278 |
283 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 279 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
284 }; | 280 }; |
285 | 281 |
286 } // namespace content | 282 } // namespace content |
287 | 283 |
288 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 284 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |