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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1754683003: Mojo bindings environment: remove usage in gles2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gles2/gles2_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 4813c42243ff00e51d88410ecaa68ed7a81becaa..fecd6aa211640e95fe6906a3be1e38d305a2f309 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -68,7 +68,6 @@ void CommandBufferDelegate::ContextLost() {}
CommandBufferClientImpl::CommandBufferClientImpl(
CommandBufferDelegate* delegate,
const std::vector<int32_t>& attribs,
- const MojoAsyncWaiter* async_waiter,
mojo::ScopedMessagePipeHandle command_buffer_handle)
: delegate_(delegate),
attribs_(attribs),
@@ -79,11 +78,9 @@ CommandBufferClientImpl::CommandBufferClientImpl(
next_transfer_buffer_id_(0),
next_image_id_(0),
next_fence_sync_release_(1),
- flushed_fence_sync_release_(0),
- async_waiter_(async_waiter) {
+ flushed_fence_sync_release_(0) {
command_buffer_.Bind(mojo::InterfacePtrInfo<mus::mojom::CommandBuffer>(
- std::move(command_buffer_handle), 0u),
- async_waiter);
+ std::move(command_buffer_handle), 0u));
command_buffer_.set_connection_error_handler(
[this]() { Destroyed(gpu::error::kUnknown, gpu::error::kLostContext); });
}
@@ -104,7 +101,7 @@ bool CommandBufferClientImpl::Initialize() {
shared_state()->Initialize();
mus::mojom::CommandBufferClientPtr client_ptr;
- client_binding_.Bind(GetProxy(&client_ptr), async_waiter_);
+ client_binding_.Bind(GetProxy(&client_ptr));
mus::mojom::CommandBufferInitializeResultPtr initialize_result;
command_buffer_->Initialize(
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gles2/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698