Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1669)

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 9583021: Only add rescheduled message when there are commands to reschedule. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698