| 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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool software) | 51 bool software) |
| 52 : channel_(channel), | 52 : channel_(channel), |
| 53 handle_(handle), | 53 handle_(handle), |
| 54 initial_size_(size), | 54 initial_size_(size), |
| 55 disallowed_features_(disallowed_features), | 55 disallowed_features_(disallowed_features), |
| 56 allowed_extensions_(allowed_extensions), | 56 allowed_extensions_(allowed_extensions), |
| 57 requested_attribs_(attribs), | 57 requested_attribs_(attribs), |
| 58 gpu_preference_(gpu_preference), | 58 gpu_preference_(gpu_preference), |
| 59 route_id_(route_id), | 59 route_id_(route_id), |
| 60 software_(software), | 60 software_(software), |
| 61 client_has_memory_allocation_changed_callback_(false), |
| 61 last_flush_count_(0), | 62 last_flush_count_(0), |
| 62 allocation_(GpuMemoryAllocation::INVALID_RESOURCE_SIZE, | 63 allocation_(GpuMemoryAllocation::INVALID_RESOURCE_SIZE, |
| 63 GpuMemoryAllocation::kHasFrontbuffer | | 64 GpuMemoryAllocation::kHasFrontbuffer | |
| 64 GpuMemoryAllocation::kHasBackbuffer), | 65 GpuMemoryAllocation::kHasBackbuffer), |
| 65 parent_stub_for_initialization_(), | 66 parent_stub_for_initialization_(), |
| 66 parent_texture_for_initialization_(0), | 67 parent_texture_for_initialization_(0), |
| 67 watchdog_(watchdog) { | 68 watchdog_(watchdog) { |
| 68 if (share_group) { | 69 if (share_group) { |
| 69 context_group_ = share_group->context_group_; | 70 context_group_ = share_group->context_group_; |
| 70 } else { | 71 } else { |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 } | 650 } |
| 650 | 651 |
| 651 void GpuCommandBufferStub::SetMemoryAllocation( | 652 void GpuCommandBufferStub::SetMemoryAllocation( |
| 652 const GpuMemoryAllocation& allocation) { | 653 const GpuMemoryAllocation& allocation) { |
| 653 allocation_ = allocation; | 654 allocation_ = allocation; |
| 654 | 655 |
| 655 SendMemoryAllocationToProxy(allocation); | 656 SendMemoryAllocationToProxy(allocation); |
| 656 } | 657 } |
| 657 | 658 |
| 658 #endif // defined(ENABLE_GPU) | 659 #endif // defined(ENABLE_GPU) |
| OLD | NEW |