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

Side by Side Diff: services/gles2/command_buffer_impl.h

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 unified diff | Download patch
« no previous file with comments | « services/gles2/command_buffer_driver.cc ('k') | services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 20 matching lines...) Expand all
31 }; 31 };
32 32
33 CommandBufferImpl( 33 CommandBufferImpl(
34 mojo::InterfaceRequest<CommandBuffer> request, 34 mojo::InterfaceRequest<CommandBuffer> request,
35 mojo::ViewportParameterListenerPtr listener, 35 mojo::ViewportParameterListenerPtr listener,
36 scoped_refptr<base::SingleThreadTaskRunner> control_task_runner, 36 scoped_refptr<base::SingleThreadTaskRunner> control_task_runner,
37 gpu::SyncPointManager* sync_point_manager, 37 gpu::SyncPointManager* sync_point_manager,
38 scoped_ptr<CommandBufferDriver> driver); 38 scoped_ptr<CommandBufferDriver> driver);
39 ~CommandBufferImpl() override; 39 ~CommandBufferImpl() override;
40 40
41 void Initialize(mojo::CommandBufferSyncClientPtr sync_client, 41 void Initialize(
42 mojo::CommandBufferSyncPointClientPtr sync_point_client, 42 mojo::InterfaceHandle<mojo::CommandBufferSyncClient> sync_client,
43 mojo::CommandBufferLostContextObserverPtr loss_observer, 43 mojo::InterfaceHandle<mojo::CommandBufferSyncPointClient>
44 mojo::ScopedSharedBufferHandle shared_state) override; 44 sync_point_client,
45 mojo::InterfaceHandle<mojo::CommandBufferLostContextObserver>
46 loss_observer,
47 mojo::ScopedSharedBufferHandle shared_state) override;
45 void SetGetBuffer(int32_t buffer) override; 48 void SetGetBuffer(int32_t buffer) override;
46 void Flush(int32_t put_offset) override; 49 void Flush(int32_t put_offset) override;
47 void MakeProgress(int32_t last_get_offset) override; 50 void MakeProgress(int32_t last_get_offset) override;
48 void RegisterTransferBuffer(int32_t id, 51 void RegisterTransferBuffer(int32_t id,
49 mojo::ScopedSharedBufferHandle transfer_buffer, 52 mojo::ScopedSharedBufferHandle transfer_buffer,
50 uint32_t size) override; 53 uint32_t size) override;
51 void DestroyTransferBuffer(int32_t id) override; 54 void DestroyTransferBuffer(int32_t id) override;
52 void InsertSyncPoint(bool retire) override; 55 void InsertSyncPoint(bool retire) override;
53 void RetireSyncPoint(uint32_t sync_point) override; 56 void RetireSyncPoint(uint32_t sync_point) override;
54 void Echo(const mojo::Callback<void()>& callback) override; 57 void Echo(const mojo::Callback<void()>& callback) override;
(...skipping 22 matching lines...) Expand all
77 mojo::Binding<CommandBuffer> binding_; 80 mojo::Binding<CommandBuffer> binding_;
78 Observer* observer_; 81 Observer* observer_;
79 82
80 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; 83 base::WeakPtrFactory<CommandBufferImpl> weak_factory_;
81 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 84 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
82 }; 85 };
83 86
84 } // namespace gles2 87 } // namespace gles2
85 88
86 #endif // SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 89 #endif // SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « services/gles2/command_buffer_driver.cc ('k') | services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698