diff options
Diffstat (limited to 'gpu/command_buffer/service/gpu_processor.cc')
-rw-r--r-- | gpu/command_buffer/service/gpu_processor.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gpu/command_buffer/service/gpu_processor.cc b/gpu/command_buffer/service/gpu_processor.cc index 845d5b6..6d71a9c 100644 --- a/gpu/command_buffer/service/gpu_processor.cc +++ b/gpu/command_buffer/service/gpu_processor.cc @@ -2,23 +2,16 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/message_loop.h" #include "gpu/command_buffer/service/gpu_processor.h" -#include "gpu/np_utils/np_browser.h" using ::base::SharedMemory; -using np_utils::NPBrowser; namespace command_buffer { GPUProcessor::~GPUProcessor() { } -namespace { -void InvokeProcessCommands(void* data) { - static_cast<GPUProcessor*>(data)->ProcessCommands(); -} -} // namespace anonymous - void GPUProcessor::ProcessCommands() { if (command_buffer_->GetErrorStatus()) return; @@ -48,7 +41,8 @@ void GPUProcessor::ProcessCommands() { command_buffer_->SetGetOffset(static_cast<int32>(parser_->get())); if (!parser_->IsEmpty()) { - NPBrowser::get()->PluginThreadAsyncCall(npp_, InvokeProcessCommands, this); + MessageLoop::current()->PostTask( + FROM_HERE, NewRunnableMethod(this, &GPUProcessor::ProcessCommands)); } } |