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 GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
| 12 #include <memory> |
12 #include <string> | 13 #include <string> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
17 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
19 #include "gpu/command_buffer/common/command_buffer_id.h" | 20 #include "gpu/command_buffer/common/command_buffer_id.h" |
20 #include "gpu/command_buffer/common/constants.h" | 21 #include "gpu/command_buffer/common/constants.h" |
21 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 gfx::Size initial_size_; | 244 gfx::Size initial_size_; |
244 gles2::DisallowedFeatures disallowed_features_; | 245 gles2::DisallowedFeatures disallowed_features_; |
245 std::vector<int32_t> requested_attribs_; | 246 std::vector<int32_t> requested_attribs_; |
246 gfx::GpuPreference gpu_preference_; | 247 gfx::GpuPreference gpu_preference_; |
247 bool use_virtualized_gl_context_; | 248 bool use_virtualized_gl_context_; |
248 const CommandBufferId command_buffer_id_; | 249 const CommandBufferId command_buffer_id_; |
249 const int32_t stream_id_; | 250 const int32_t stream_id_; |
250 const int32_t route_id_; | 251 const int32_t route_id_; |
251 uint32_t last_flush_count_; | 252 uint32_t last_flush_count_; |
252 | 253 |
253 scoped_ptr<CommandBufferService> command_buffer_; | 254 std::unique_ptr<CommandBufferService> command_buffer_; |
254 scoped_ptr<gles2::GLES2Decoder> decoder_; | 255 std::unique_ptr<gles2::GLES2Decoder> decoder_; |
255 scoped_ptr<CommandExecutor> executor_; | 256 std::unique_ptr<CommandExecutor> executor_; |
256 scoped_ptr<SyncPointClient> sync_point_client_; | 257 std::unique_ptr<SyncPointClient> sync_point_client_; |
257 scoped_refptr<gfx::GLSurface> surface_; | 258 scoped_refptr<gfx::GLSurface> surface_; |
258 gfx::GLSurface::Format surface_format_; | 259 gfx::GLSurface::Format surface_format_; |
259 | 260 |
260 GpuWatchdog* watchdog_; | 261 GpuWatchdog* watchdog_; |
261 | 262 |
262 base::ObserverList<DestructionObserver> destruction_observers_; | 263 base::ObserverList<DestructionObserver> destruction_observers_; |
263 | 264 |
264 bool waiting_for_sync_point_; | 265 bool waiting_for_sync_point_; |
265 | 266 |
266 base::TimeTicks process_delayed_work_time_; | 267 base::TimeTicks process_delayed_work_time_; |
267 uint32_t previous_processed_num_; | 268 uint32_t previous_processed_num_; |
268 base::TimeTicks last_idle_time_; | 269 base::TimeTicks last_idle_time_; |
269 | 270 |
270 scoped_refptr<PreemptionFlag> preemption_flag_; | 271 scoped_refptr<PreemptionFlag> preemption_flag_; |
271 | 272 |
272 LatencyInfoCallback latency_info_callback_; | 273 LatencyInfoCallback latency_info_callback_; |
273 | 274 |
274 GURL active_url_; | 275 GURL active_url_; |
275 size_t active_url_hash_; | 276 size_t active_url_hash_; |
276 | 277 |
277 scoped_ptr<WaitForCommandState> wait_for_token_; | 278 std::unique_ptr<WaitForCommandState> wait_for_token_; |
278 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 279 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; |
279 | 280 |
280 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
281 }; | 282 }; |
282 | 283 |
283 } // namespace gpu | 284 } // namespace gpu |
284 | 285 |
285 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 286 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |