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

Unified Diff: services/gles2/command_buffer_driver.h

Issue 772523004: Move code in //services/gles2 into namespace gles2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/shell/context.cc ('k') | services/gles2/command_buffer_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/command_buffer_driver.h
diff --git a/services/gles2/command_buffer_driver.h b/services/gles2/command_buffer_driver.h
index 853b12a96cdb581157ed6d84a24e4e2b43822237..9305142e5ce9344af99e41316e2da49f81abec54 100644
--- a/services/gles2/command_buffer_driver.h
+++ b/services/gles2/command_buffer_driver.h
@@ -31,7 +31,7 @@ class GLShareGroup;
class GLSurface;
}
-namespace mojo {
+namespace gles2 {
class CommandBufferDriver {
public:
@@ -59,19 +59,19 @@ class CommandBufferDriver {
void set_client(Client* client) { client_ = client; }
- void Initialize(CommandBufferSyncClientPtr sync_client,
- ScopedSharedBufferHandle shared_state);
+ void Initialize(mojo::CommandBufferSyncClientPtr sync_client,
+ mojo::ScopedSharedBufferHandle shared_state);
void SetGetBuffer(int32_t buffer);
void Flush(int32_t put_offset);
void MakeProgress(int32_t last_get_offset);
void RegisterTransferBuffer(int32_t id,
- ScopedSharedBufferHandle transfer_buffer,
+ mojo::ScopedSharedBufferHandle transfer_buffer,
uint32_t size);
void DestroyTransferBuffer(int32_t id);
- void Echo(const Callback<void()>& callback);
+ void Echo(const mojo::Callback<void()>& callback);
private:
- bool DoInitialize(ScopedSharedBufferHandle shared_state);
+ bool DoInitialize(mojo::ScopedSharedBufferHandle shared_state);
void OnResize(gfx::Size size, float scale_factor);
bool OnWaitSyncPoint(uint32_t sync_point);
void OnSyncPointRetired();
@@ -81,7 +81,7 @@ class CommandBufferDriver {
const base::TimeDelta interval);
Client* client_;
- CommandBufferSyncClientPtr sync_client_;
+ mojo::CommandBufferSyncClientPtr sync_client_;
gfx::AcceleratedWidget widget_;
gfx::Size size_;
scoped_ptr<gpu::CommandBufferService> command_buffer_;
@@ -101,6 +101,6 @@ class CommandBufferDriver {
DISALLOW_COPY_AND_ASSIGN(CommandBufferDriver);
};
-} // namespace mojo
+} // namespace gles2
#endif // SERVICES_GLES2_COMMAND_BUFFER_DRIVER_H_
« no previous file with comments | « mojo/shell/context.cc ('k') | services/gles2/command_buffer_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698