| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Sets buffer usage depending on Memory Allocation | 122 // Sets buffer usage depending on Memory Allocation |
| 123 virtual void SetMemoryAllocation( | 123 virtual void SetMemoryAllocation( |
| 124 const GpuMemoryAllocation& allocation) OVERRIDE; | 124 const GpuMemoryAllocation& allocation) OVERRIDE; |
| 125 | 125 |
| 126 // Whether this command buffer can currently handle IPC messages. | 126 // Whether this command buffer can currently handle IPC messages. |
| 127 bool IsScheduled(); | 127 bool IsScheduled(); |
| 128 | 128 |
| 129 // Whether this command buffer needs to be polled again in the future. | 129 // Whether this command buffer needs to be polled again in the future. |
| 130 bool HasMoreWork(); | 130 bool HasMoreWork(); |
| 131 | 131 |
| 132 // Whether there are commands in the buffer that haven't been processed. |
| 133 bool HasUnprocessedCommands(); |
| 134 |
| 132 gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); } | 135 gpu::gles2::GLES2Decoder* decoder() const { return decoder_.get(); } |
| 133 gpu::GpuScheduler* scheduler() const { return scheduler_.get(); } | 136 gpu::GpuScheduler* scheduler() const { return scheduler_.get(); } |
| 134 | 137 |
| 135 // Identifies the target surface. | 138 // Identifies the target surface. |
| 136 int32 surface_id() const { | 139 int32 surface_id() const { |
| 137 return (surface_state_.get()) ? surface_state_->surface_id : 0; | 140 return (surface_state_.get()) ? surface_state_->surface_id : 0; |
| 138 } | 141 } |
| 139 | 142 |
| 140 // Identifies the various GpuCommandBufferStubs in the GPU process belonging | 143 // Identifies the various GpuCommandBufferStubs in the GPU process belonging |
| 141 // to the same renderer process. | 144 // to the same renderer process. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 232 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
| 230 | 233 |
| 231 ObserverList<DestructionObserver> destruction_observers_; | 234 ObserverList<DestructionObserver> destruction_observers_; |
| 232 | 235 |
| 233 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 236 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 234 }; | 237 }; |
| 235 | 238 |
| 236 #endif // defined(ENABLE_GPU) | 239 #endif // defined(ENABLE_GPU) |
| 237 | 240 |
| 238 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 241 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |