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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 12226039: Reland 179911 and 179910 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src
Patch Set: Delta from original landing that's necessary for M25 (not ToT) Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index e6e1e78bc4597ceb4fd3b4aab203cdd2ede624d1..0edbf49c2343f05ecf5d41688c235ef8e0fbc810 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -372,8 +372,8 @@ void GpuCommandBufferStub::OnInitialize(
scheduler_.reset(new gpu::GpuScheduler(command_buffer_.get(),
decoder_.get(),
decoder_.get()));
- if (preempt_by_counter_.get())
- scheduler_->SetPreemptByCounter(preempt_by_counter_);
+ if (preemption_flag_.get())
+ scheduler_->SetPreemptByFlag(preemption_flag_);
decoder_->set_engine(scheduler_.get());
@@ -883,11 +883,11 @@ void GpuCommandBufferStub::RemoveDestructionObserver(
destruction_observers_.RemoveObserver(observer);
}
-void GpuCommandBufferStub::SetPreemptByCounter(
- scoped_refptr<gpu::RefCountedCounter> counter) {
- preempt_by_counter_ = counter;
+void GpuCommandBufferStub::SetPreemptByFlag(
+ scoped_refptr<gpu::PreemptionFlag> flag) {
+ preemption_flag_ = flag;
if (scheduler_.get())
- scheduler_->SetPreemptByCounter(preempt_by_counter_);
+ scheduler_->SetPreemptByFlag(preemption_flag_);
}
bool GpuCommandBufferStub::GetTotalGpuMemory(size_t* bytes) {
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698