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

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

Issue 198343002: Mojo: request/response bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define MOJO_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/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "mojo/public/bindings/remote_ptr.h" 10 #include "mojo/public/bindings/remote_ptr.h"
(...skipping 23 matching lines...) Expand all
34 34
35 virtual void Initialize(ScopedCommandBufferSyncClientHandle sync_client, 35 virtual void Initialize(ScopedCommandBufferSyncClientHandle sync_client,
36 const ShmHandle& shared_state) OVERRIDE; 36 const ShmHandle& shared_state) OVERRIDE;
37 virtual void SetGetBuffer(int32_t buffer) OVERRIDE; 37 virtual void SetGetBuffer(int32_t buffer) OVERRIDE;
38 virtual void Flush(int32_t put_offset) OVERRIDE; 38 virtual void Flush(int32_t put_offset) OVERRIDE;
39 virtual void MakeProgress(int32_t last_get_offset) OVERRIDE; 39 virtual void MakeProgress(int32_t last_get_offset) OVERRIDE;
40 virtual void RegisterTransferBuffer(int32_t id, 40 virtual void RegisterTransferBuffer(int32_t id,
41 const ShmHandle& transfer_buffer, 41 const ShmHandle& transfer_buffer,
42 uint32_t size) OVERRIDE; 42 uint32_t size) OVERRIDE;
43 virtual void DestroyTransferBuffer(int32_t id) OVERRIDE; 43 virtual void DestroyTransferBuffer(int32_t id) OVERRIDE;
44 virtual void Echo() OVERRIDE; 44 virtual void Echo(const Callback<void()>& callback) OVERRIDE;
45 45
46 virtual void RequestAnimationFrames() OVERRIDE; 46 virtual void RequestAnimationFrames() OVERRIDE;
47 virtual void CancelAnimationFrames() OVERRIDE; 47 virtual void CancelAnimationFrames() OVERRIDE;
48 48
49 private: 49 private:
50 bool DoInitialize(const ShmHandle& shared_state); 50 bool DoInitialize(const ShmHandle& shared_state);
51 51
52 void OnParseError(); 52 void OnParseError();
53 53
54 void DrawAnimationFrame(); 54 void DrawAnimationFrame();
55 55
56 RemotePtr<CommandBufferClient> client_; 56 RemotePtr<CommandBufferClient> client_;
57 RemotePtr<CommandBufferSyncClient> sync_client_; 57 RemotePtr<CommandBufferSyncClient> sync_client_;
58 58
59 gfx::AcceleratedWidget widget_; 59 gfx::AcceleratedWidget widget_;
60 gfx::Size size_; 60 gfx::Size size_;
61 scoped_ptr<gpu::CommandBufferService> command_buffer_; 61 scoped_ptr<gpu::CommandBufferService> command_buffer_;
62 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 62 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
63 scoped_ptr<gpu::GpuScheduler> scheduler_; 63 scoped_ptr<gpu::GpuScheduler> scheduler_;
64 scoped_ptr<gpu::GpuControlService> gpu_control_; 64 scoped_ptr<gpu::GpuControlService> gpu_control_;
65 base::RepeatingTimer<CommandBufferImpl> timer_; 65 base::RepeatingTimer<CommandBufferImpl> timer_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 67 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
68 }; 68 };
69 69
70 } // namespace services 70 } // namespace services
71 } // namespace mojo 71 } // namespace mojo
72 72
73 #endif // MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 73 #endif // MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW
« 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