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

Unified Diff: mojo/services/gles2/command_buffer_impl.h

Issue 221453007: mojo/gpu: use SharedBuffer instead of base::SharedMemory with hacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missing include Created 6 years, 9 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/services/gles2/command_buffer.mojom ('k') | mojo/services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/gles2/command_buffer_impl.h
diff --git a/mojo/services/gles2/command_buffer_impl.h b/mojo/services/gles2/command_buffer_impl.h
index 99451c9d8f9eb74a2b3130d158340eca80708bad..3a461e5e7c7db4e17442ad414db25e71be290cf3 100644
--- a/mojo/services/gles2/command_buffer_impl.h
+++ b/mojo/services/gles2/command_buffer_impl.h
@@ -33,13 +33,14 @@ class CommandBufferImpl : public CommandBuffer {
virtual ~CommandBufferImpl();
virtual void Initialize(ScopedCommandBufferSyncClientHandle sync_client,
- const ShmHandle& shared_state) OVERRIDE;
+ mojo::ScopedSharedBufferHandle shared_state) OVERRIDE;
virtual void SetGetBuffer(int32_t buffer) OVERRIDE;
virtual void Flush(int32_t put_offset) OVERRIDE;
virtual void MakeProgress(int32_t last_get_offset) OVERRIDE;
- virtual void RegisterTransferBuffer(int32_t id,
- const ShmHandle& transfer_buffer,
- uint32_t size) OVERRIDE;
+ virtual void RegisterTransferBuffer(
+ int32_t id,
+ mojo::ScopedSharedBufferHandle transfer_buffer,
+ uint32_t size) OVERRIDE;
virtual void DestroyTransferBuffer(int32_t id) OVERRIDE;
virtual void Echo(const Callback<void()>& callback) OVERRIDE;
@@ -47,7 +48,7 @@ class CommandBufferImpl : public CommandBuffer {
virtual void CancelAnimationFrames() OVERRIDE;
private:
- bool DoInitialize(const ShmHandle& shared_state);
+ bool DoInitialize(mojo::ScopedSharedBufferHandle shared_state);
void OnParseError();
« no previous file with comments | « mojo/services/gles2/command_buffer.mojom ('k') | mojo/services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698