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

Unified Diff: services/gles2/command_buffer_impl.cc

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 | « services/gles2/command_buffer_impl.h ('k') | services/gles2/command_buffer_type_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/command_buffer_impl.cc
diff --git a/services/gles2/command_buffer_impl.cc b/services/gles2/command_buffer_impl.cc
index 8cbc59f6162cd7e9238e6138b55478eb91a6e244..129238c5851a2091d89cbee5f249dea0fd62db55 100644
--- a/services/gles2/command_buffer_impl.cc
+++ b/services/gles2/command_buffer_impl.cc
@@ -9,13 +9,13 @@
#include "gpu/command_buffer/service/sync_point_manager.h"
#include "services/gles2/command_buffer_driver.h"
-namespace mojo {
+namespace gles2 {
namespace {
void DestroyDriver(scoped_ptr<CommandBufferDriver> driver) {
// Just let ~scoped_ptr run.
}
-void RunCallback(const Callback<void()>& callback) {
+void RunCallback(const mojo::Callback<void()>& callback) {
callback.Run();
}
@@ -49,8 +49,8 @@ class CommandBufferDriverClientImpl : public CommandBufferDriver::Client {
}
CommandBufferImpl::CommandBufferImpl(
- InterfaceRequest<CommandBuffer> request,
- ViewportParameterListenerPtr listener,
+ mojo::InterfaceRequest<mojo::CommandBuffer> request,
+ mojo::ViewportParameterListenerPtr listener,
scoped_refptr<base::SingleThreadTaskRunner> control_task_runner,
gpu::SyncPointManager* sync_point_manager,
scoped_ptr<CommandBufferDriver> driver)
@@ -75,9 +75,9 @@ CommandBufferImpl::~CommandBufferImpl() {
}
void CommandBufferImpl::Initialize(
- CommandBufferSyncClientPtr sync_client,
- CommandBufferSyncPointClientPtr sync_point_client,
- ScopedSharedBufferHandle shared_state) {
+ mojo::CommandBufferSyncClientPtr sync_client,
+ mojo::CommandBufferSyncPointClientPtr sync_point_client,
+ mojo::ScopedSharedBufferHandle shared_state) {
sync_point_client_ = sync_point_client.Pass();
driver_task_runner_->PostTask(
FROM_HERE,
@@ -106,7 +106,7 @@ void CommandBufferImpl::MakeProgress(int32_t last_get_offset) {
void CommandBufferImpl::RegisterTransferBuffer(
int32_t id,
- ScopedSharedBufferHandle transfer_buffer,
+ mojo::ScopedSharedBufferHandle transfer_buffer,
uint32_t size) {
driver_task_runner_->PostTask(
FROM_HERE, base::Bind(&CommandBufferDriver::RegisterTransferBuffer,
@@ -136,12 +136,13 @@ void CommandBufferImpl::RetireSyncPoint(uint32_t sync_point) {
sync_point_manager_, sync_point));
}
-void CommandBufferImpl::Echo(const Callback<void()>& callback) {
+void CommandBufferImpl::Echo(const mojo::Callback<void()>& callback) {
driver_task_runner_->PostTaskAndReply(FROM_HERE, base::Bind(&base::DoNothing),
base::Bind(&RunCallback, callback));
}
-void CommandBufferImpl::BindToRequest(InterfaceRequest<CommandBuffer> request) {
+void CommandBufferImpl::BindToRequest(
+ mojo::InterfaceRequest<mojo::CommandBuffer> request) {
binding_.Bind(request.Pass());
}
@@ -157,4 +158,4 @@ void CommandBufferImpl::UpdateVSyncParameters(base::TimeTicks timebase,
timebase.ToInternalValue(), interval.ToInternalValue());
}
-} // namespace mojo
+} // namespace gles2
« no previous file with comments | « services/gles2/command_buffer_impl.h ('k') | services/gles2/command_buffer_type_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698