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

Unified Diff: components/view_manager/native_viewport/onscreen_context_provider.cc

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 years, 5 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 | « components/view_manager/gles2/gpu_state.cc ('k') | content/browser/android/in_process/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/native_viewport/onscreen_context_provider.cc
diff --git a/components/view_manager/native_viewport/onscreen_context_provider.cc b/components/view_manager/native_viewport/onscreen_context_provider.cc
index 8fb1c1e3457162c7ab6a1a79b303efbc783be379..f76f5ba5f0f1503fc576046d040a83e9282dde36 100644
--- a/components/view_manager/native_viewport/onscreen_context_provider.cc
+++ b/components/view_manager/native_viewport/onscreen_context_provider.cc
@@ -69,16 +69,14 @@ void OnscreenContextProvider::CreateAndReturnCommandBuffer() {
mojo::CommandBufferPtr cb;
scoped_ptr<gles2::CommandBufferDriver> command_buffer_driver(
new gles2::CommandBufferDriver(
- widget_, state_->share_group(), state_->mailbox_manager(),
- state_->sync_point_manager(),
+ widget_, state_,
base::Bind(&OnscreenContextProvider::CommandBufferDestroyed,
base::Unretained(this))));
command_buffers_.insert(command_buffer_driver.get());
- command_buffer_impl_ = new gles2::CommandBufferImpl(
- GetProxy(&cb), pending_listener_.Pass(), state_->control_task_runner(),
- state_->sync_point_manager(),
- command_buffer_driver.Pass());
+ command_buffer_impl_ =
+ new gles2::CommandBufferImpl(GetProxy(&cb), pending_listener_.Pass(),
+ state_, command_buffer_driver.Pass());
command_buffer_impl_->set_observer(this);
pending_create_callback_.Run(cb.Pass());
pending_create_callback_.reset();
« no previous file with comments | « components/view_manager/gles2/gpu_state.cc ('k') | content/browser/android/in_process/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698