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

Unified Diff: services/gles2/command_buffer_driver.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 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 | « services/gles2/command_buffer_driver.h ('k') | services/gles2/command_buffer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/command_buffer_driver.cc
diff --git a/services/gles2/command_buffer_driver.cc b/services/gles2/command_buffer_driver.cc
index 1c3f9f62314fb0375bf5ed7d36e79b24e67a2508..fac4319943660a06279b560b7cbab6e02e338a8d 100644
--- a/services/gles2/command_buffer_driver.cc
+++ b/services/gles2/command_buffer_driver.cc
@@ -4,6 +4,8 @@
#include "services/gles2/command_buffer_driver.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/shared_memory.h"
@@ -85,11 +87,13 @@ CommandBufferDriver::~CommandBufferDriver() {
}
void CommandBufferDriver::Initialize(
- mojo::CommandBufferSyncClientPtr sync_client,
- mojo::CommandBufferLostContextObserverPtr loss_observer,
+ mojo::InterfaceHandle<mojo::CommandBufferSyncClient> sync_client,
+ mojo::InterfaceHandle<mojo::CommandBufferLostContextObserver> loss_observer,
mojo::ScopedSharedBufferHandle shared_state) {
- sync_client_ = sync_client.Pass();
- loss_observer_ = loss_observer.Pass();
+ sync_client_ =
+ mojo::CommandBufferSyncClientPtr::Create(std::move(sync_client));
+ loss_observer_ = mojo::CommandBufferLostContextObserverPtr::Create(
+ std::move(loss_observer));
bool success = DoInitialize(shared_state.Pass());
mojo::GpuCapabilitiesPtr capabilities =
success ? mojo::GpuCapabilities::From(decoder_->GetCapabilities())
« no previous file with comments | « services/gles2/command_buffer_driver.h ('k') | services/gles2/command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698