| 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) {
|
|
|