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

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

Issue 12340118: GPU: Only allow the UI channel to preempt if all stubs are scheduled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 7 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 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 void OnRetireSyncPoint(uint32 sync_point); 173 void OnRetireSyncPoint(uint32 sync_point);
174 bool OnWaitSyncPoint(uint32 sync_point); 174 bool OnWaitSyncPoint(uint32 sync_point);
175 void OnSyncPointRetired(); 175 void OnSyncPointRetired();
176 void OnSignalSyncPoint(uint32 sync_point, uint32 id); 176 void OnSignalSyncPoint(uint32 sync_point, uint32 id);
177 void OnSignalSyncPointAck(uint32 id); 177 void OnSignalSyncPointAck(uint32 id);
178 178
179 void OnReceivedClientManagedMemoryStats(const GpuManagedMemoryStats& stats); 179 void OnReceivedClientManagedMemoryStats(const GpuManagedMemoryStats& stats);
180 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); 180 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback);
181 181
182 void OnReschedule();
183
184 void OnCommandProcessed(); 182 void OnCommandProcessed();
185 void OnParseError(); 183 void OnParseError();
186 184
187 void ReportState(); 185 void ReportState();
188 186
189 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. 187 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
190 void PutChanged(); 188 void PutChanged();
191 189
192 // Poll the command buffer to execute work. 190 // Poll the command buffer to execute work.
193 void PollWork(); 191 void PollWork();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 size_t active_url_hash_; 250 size_t active_url_hash_;
253 251
254 size_t total_gpu_memory_; 252 size_t total_gpu_memory_;
255 253
256 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 254 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
257 }; 255 };
258 256
259 } // namespace content 257 } // namespace content
260 258
261 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 259 #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