| 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 16 matching lines...) Expand all Loading... |
| 27 #include "ui/gfx/geometry/size.h" | 27 #include "ui/gfx/geometry/size.h" |
| 28 #include "ui/gfx/gpu_memory_buffer.h" | 28 #include "ui/gfx/gpu_memory_buffer.h" |
| 29 #include "ui/gfx/native_widget_types.h" | 29 #include "ui/gfx/native_widget_types.h" |
| 30 #include "ui/gfx/swap_result.h" | 30 #include "ui/gfx/swap_result.h" |
| 31 #include "ui/gl/gl_surface.h" | 31 #include "ui/gl/gl_surface.h" |
| 32 #include "ui/gl/gpu_preference.h" | 32 #include "ui/gl/gpu_preference.h" |
| 33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 34 | 34 |
| 35 namespace gpu { | 35 namespace gpu { |
| 36 struct Mailbox; | 36 struct Mailbox; |
| 37 class SyncPointClient; |
| 37 class ValueStateMap; | 38 class ValueStateMap; |
| 38 namespace gles2 { | 39 namespace gles2 { |
| 39 class MailboxManager; | 40 class MailboxManager; |
| 40 class SubscriptionRefSet; | 41 class SubscriptionRefSet; |
| 41 } | 42 } |
| 42 } | 43 } |
| 43 | 44 |
| 44 namespace content { | 45 namespace content { |
| 45 | 46 |
| 46 class GpuChannel; | 47 class GpuChannel; |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 const uint64_t command_buffer_id_; | 265 const uint64_t command_buffer_id_; |
| 265 const int32 stream_id_; | 266 const int32 stream_id_; |
| 266 const int32 route_id_; | 267 const int32 route_id_; |
| 267 const int32 surface_id_; | 268 const int32 surface_id_; |
| 268 bool software_; | 269 bool software_; |
| 269 uint32 last_flush_count_; | 270 uint32 last_flush_count_; |
| 270 | 271 |
| 271 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 272 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 272 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; | 273 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; |
| 273 scoped_ptr<gpu::GpuScheduler> scheduler_; | 274 scoped_ptr<gpu::GpuScheduler> scheduler_; |
| 275 scoped_ptr<gpu::SyncPointClient> sync_point_client_; |
| 274 scoped_refptr<gfx::GLSurface> surface_; | 276 scoped_refptr<gfx::GLSurface> surface_; |
| 275 | 277 |
| 276 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; | 278 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; |
| 277 // The last memory allocation received from the GpuMemoryManager (used to | 279 // The last memory allocation received from the GpuMemoryManager (used to |
| 278 // elide redundant work). | 280 // elide redundant work). |
| 279 bool last_memory_allocation_valid_; | 281 bool last_memory_allocation_valid_; |
| 280 gpu::MemoryAllocation last_memory_allocation_; | 282 gpu::MemoryAllocation last_memory_allocation_; |
| 281 | 283 |
| 282 GpuWatchdog* watchdog_; | 284 GpuWatchdog* watchdog_; |
| 283 | 285 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 301 size_t total_gpu_memory_; | 303 size_t total_gpu_memory_; |
| 302 scoped_ptr<WaitForCommandState> wait_for_token_; | 304 scoped_ptr<WaitForCommandState> wait_for_token_; |
| 303 scoped_ptr<WaitForCommandState> wait_for_get_offset_; | 305 scoped_ptr<WaitForCommandState> wait_for_get_offset_; |
| 304 | 306 |
| 305 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 307 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 306 }; | 308 }; |
| 307 | 309 |
| 308 } // namespace content | 310 } // namespace content |
| 309 | 311 |
| 310 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 312 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |