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

Unified Diff: gpu/command_buffer/service/gpu_processor.cc

Issue 465099: Removed command buffer's last dependency on NPAPI.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | « gpu/command_buffer/service/gpu_processor.h ('k') | gpu/command_buffer/service/gpu_processor_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_processor.cc
===================================================================
--- gpu/command_buffer/service/gpu_processor.cc (revision 33880)
+++ gpu/command_buffer/service/gpu_processor.cc (working copy)
@@ -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 @@
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));
}
}
« no previous file with comments | « gpu/command_buffer/service/gpu_processor.h ('k') | gpu/command_buffer/service/gpu_processor_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698