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

Unified Diff: services/gles2/gpu_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/gpu_impl.h ('k') | services/gles2/mojo_buffer_backing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/gpu_impl.cc
diff --git a/services/gles2/gpu_impl.cc b/services/gles2/gpu_impl.cc
index 6cbc48fdaa3fa97ebe8a120b95a1089599d77d9d..52d3191bf08207598c6a80a974a060d308095e8b 100644
--- a/services/gles2/gpu_impl.cc
+++ b/services/gles2/gpu_impl.cc
@@ -13,7 +13,7 @@
#include "ui/gl/gl_share_group.h"
#include "ui/gl/gl_surface.h"
-namespace mojo {
+namespace gles2 {
GpuImpl::State::State()
: control_thread_("gpu_command_buffer_control"),
@@ -26,7 +26,7 @@ GpuImpl::State::State()
GpuImpl::State::~State() {
}
-GpuImpl::GpuImpl(InterfaceRequest<Gpu> request,
+GpuImpl::GpuImpl(mojo::InterfaceRequest<Gpu> request,
const scoped_refptr<State>& state)
: binding_(this, request.Pass()), state_(state) {
}
@@ -36,9 +36,9 @@ GpuImpl::~GpuImpl() {
void GpuImpl::CreateOnscreenGLES2Context(
uint64_t native_viewport_id,
- SizePtr size,
- InterfaceRequest<CommandBuffer> request,
- ViewportParameterListenerPtr listener) {
+ mojo::SizePtr size,
+ mojo::InterfaceRequest<mojo::CommandBuffer> request,
+ mojo::ViewportParameterListenerPtr listener) {
gfx::AcceleratedWidget widget = bit_cast<gfx::AcceleratedWidget>(
static_cast<uintptr_t>(native_viewport_id));
new CommandBufferImpl(
@@ -50,8 +50,8 @@ void GpuImpl::CreateOnscreenGLES2Context(
}
void GpuImpl::CreateOffscreenGLES2Context(
- InterfaceRequest<CommandBuffer> request) {
- new CommandBufferImpl(request.Pass(), ViewportParameterListenerPtr(),
+ mojo::InterfaceRequest<mojo::CommandBuffer> request) {
+ new CommandBufferImpl(request.Pass(), mojo::ViewportParameterListenerPtr(),
state_->control_task_runner(),
state_->sync_point_manager(),
make_scoped_ptr(new CommandBufferDriver(
@@ -59,4 +59,4 @@ void GpuImpl::CreateOffscreenGLES2Context(
state_->sync_point_manager())));
}
-} // namespace mojo
+} // namespace gles2
« no previous file with comments | « services/gles2/gpu_impl.h ('k') | services/gles2/mojo_buffer_backing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698