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

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

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix network_service_loader Created 6 years, 5 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
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/cpp/system/core.h" 10 #include "mojo/public/cpp/system/core.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace mojo { 28 namespace mojo {
29 namespace services { 29 namespace services {
30 30
31 class CommandBufferImpl : public InterfaceImpl<CommandBuffer> { 31 class CommandBufferImpl : public InterfaceImpl<CommandBuffer> {
32 public: 32 public:
33 CommandBufferImpl(gfx::AcceleratedWidget widget, 33 CommandBufferImpl(gfx::AcceleratedWidget widget,
34 const gfx::Size& size); 34 const gfx::Size& size);
35 virtual ~CommandBufferImpl(); 35 virtual ~CommandBufferImpl();
36 36
37 virtual void OnConnectionError() OVERRIDE;
38 virtual void Initialize(CommandBufferSyncClientPtr sync_client, 37 virtual void Initialize(CommandBufferSyncClientPtr sync_client,
39 mojo::ScopedSharedBufferHandle shared_state) OVERRIDE; 38 mojo::ScopedSharedBufferHandle shared_state) OVERRIDE;
40 virtual void SetGetBuffer(int32_t buffer) OVERRIDE; 39 virtual void SetGetBuffer(int32_t buffer) OVERRIDE;
41 virtual void Flush(int32_t put_offset) OVERRIDE; 40 virtual void Flush(int32_t put_offset) OVERRIDE;
42 virtual void MakeProgress(int32_t last_get_offset) OVERRIDE; 41 virtual void MakeProgress(int32_t last_get_offset) OVERRIDE;
43 virtual void RegisterTransferBuffer( 42 virtual void RegisterTransferBuffer(
44 int32_t id, 43 int32_t id,
45 mojo::ScopedSharedBufferHandle transfer_buffer, 44 mojo::ScopedSharedBufferHandle transfer_buffer,
46 uint32_t size) OVERRIDE; 45 uint32_t size) OVERRIDE;
47 virtual void DestroyTransferBuffer(int32_t id) OVERRIDE; 46 virtual void DestroyTransferBuffer(int32_t id) OVERRIDE;
(...skipping 21 matching lines...) Expand all
69 scoped_refptr<gfx::GLSurface> surface_; 68 scoped_refptr<gfx::GLSurface> surface_;
70 base::RepeatingTimer<CommandBufferImpl> timer_; 69 base::RepeatingTimer<CommandBufferImpl> timer_;
71 70
72 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 71 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
73 }; 72 };
74 73
75 } // namespace services 74 } // namespace services
76 } // namespace mojo 75 } // namespace mojo
77 76
78 #endif // MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_ 77 #endif // MOJO_SERVICES_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/dbus_echo/dbus_echo_service.cc ('k') | mojo/services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698