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_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 gpu::gles2::ImageManager* image_manager, | 66 gpu::gles2::ImageManager* image_manager, |
67 const gfx::Size& size, | 67 const gfx::Size& size, |
68 const gpu::gles2::DisallowedFeatures& disallowed_features, | 68 const gpu::gles2::DisallowedFeatures& disallowed_features, |
69 const std::string& allowed_extensions, | 69 const std::string& allowed_extensions, |
70 const std::vector<int32>& attribs, | 70 const std::vector<int32>& attribs, |
71 gfx::GpuPreference gpu_preference, | 71 gfx::GpuPreference gpu_preference, |
72 int32 route_id, | 72 int32 route_id, |
73 int32 surface_id, | 73 int32 surface_id, |
74 GpuWatchdog* watchdog, | 74 GpuWatchdog* watchdog, |
75 bool software, | 75 bool software, |
| 76 bool use_virtual_gl_context, |
76 const GURL& active_url); | 77 const GURL& active_url); |
77 | 78 |
78 virtual ~GpuCommandBufferStub(); | 79 virtual ~GpuCommandBufferStub(); |
79 | 80 |
80 // IPC::Listener implementation: | 81 // IPC::Listener implementation: |
81 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 82 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
82 | 83 |
83 // IPC::Sender implementation: | 84 // IPC::Sender implementation: |
84 virtual bool Send(IPC::Message* msg) OVERRIDE; | 85 virtual bool Send(IPC::Message* msg) OVERRIDE; |
85 | 86 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 202 |
202 gfx::GLSurfaceHandle handle_; | 203 gfx::GLSurfaceHandle handle_; |
203 gfx::Size initial_size_; | 204 gfx::Size initial_size_; |
204 gpu::gles2::DisallowedFeatures disallowed_features_; | 205 gpu::gles2::DisallowedFeatures disallowed_features_; |
205 std::string allowed_extensions_; | 206 std::string allowed_extensions_; |
206 std::vector<int32> requested_attribs_; | 207 std::vector<int32> requested_attribs_; |
207 gfx::GpuPreference gpu_preference_; | 208 gfx::GpuPreference gpu_preference_; |
208 int32 route_id_; | 209 int32 route_id_; |
209 int32 surface_id_; | 210 int32 surface_id_; |
210 bool software_; | 211 bool software_; |
| 212 bool use_virtual_gl_context_; |
211 uint32 last_flush_count_; | 213 uint32 last_flush_count_; |
212 | 214 |
213 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 215 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
214 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; | 216 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; |
215 scoped_ptr<gpu::GpuScheduler> scheduler_; | 217 scoped_ptr<gpu::GpuScheduler> scheduler_; |
216 scoped_refptr<gfx::GLSurface> surface_; | 218 scoped_refptr<gfx::GLSurface> surface_; |
217 | 219 |
218 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; | 220 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; |
219 // The last memory allocation received from the GpuMemoryManager (used to | 221 // The last memory allocation received from the GpuMemoryManager (used to |
220 // elide redundant work). | 222 // elide redundant work). |
(...skipping 27 matching lines...) Expand all Loading... |
248 size_t active_url_hash_; | 250 size_t active_url_hash_; |
249 | 251 |
250 size_t total_gpu_memory_; | 252 size_t total_gpu_memory_; |
251 | 253 |
252 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 254 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
253 }; | 255 }; |
254 | 256 |
255 } // namespace content | 257 } // namespace content |
256 | 258 |
257 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 259 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |