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

Unified Diff: components/mus/gles2/command_buffer_local.cc

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | components/mus/gles2/command_buffer_local_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_local.cc
diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
index 3d2ac952b8f3462c02ad99063885ee178a176700..f6e15a03a1263ea5153e34dc96c19a32e77848be 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -22,14 +22,13 @@
#include "ui/gl/gl_image_memory.h"
#include "ui/gl/gl_surface.h"
-namespace gles2 {
+namespace mus {
const unsigned int GL_MAP_CHROMIUM = 0x78F1;
-CommandBufferLocal::CommandBufferLocal(
- CommandBufferLocalClient* client,
- gfx::AcceleratedWidget widget,
- const scoped_refptr<gles2::GpuState>& gpu_state)
+CommandBufferLocal::CommandBufferLocal(CommandBufferLocalClient* client,
+ gfx::AcceleratedWidget widget,
+ const scoped_refptr<GpuState>& gpu_state)
: widget_(widget),
gpu_state_(gpu_state),
client_(client),
@@ -75,7 +74,7 @@ bool CommandBufferLocal::Initialize() {
bool bind_generates_resource = false;
scoped_refptr<gpu::gles2::ContextGroup> context_group =
new gpu::gles2::ContextGroup(
- gpu_state_->mailbox_manager(), new gles2::GpuMemoryTracker,
+ gpu_state_->mailbox_manager(), new GpuMemoryTracker,
new gpu::gles2::ShaderTranslatorCache,
new gpu::gles2::FramebufferCompletenessCache, nullptr, nullptr,
nullptr, bind_generates_resource);
@@ -128,8 +127,8 @@ int32_t CommandBufferLocal::CreateImage(ClientBuffer buffer,
size_t width,
size_t height,
unsigned internalformat) {
- gles2::MojoGpuMemoryBufferImpl* gpu_memory_buffer =
- gles2::MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
+ MojoGpuMemoryBufferImpl* gpu_memory_buffer =
+ MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
scoped_refptr<gfx::GLImageMemory> image(new gfx::GLImageMemory(
gfx::Size(static_cast<int>(width), static_cast<int>(height)),
@@ -160,11 +159,10 @@ int32_t CommandBufferLocal::CreateGpuMemoryBufferImage(size_t width,
unsigned internalformat,
unsigned usage) {
DCHECK_EQ(usage, static_cast<unsigned>(GL_MAP_CHROMIUM));
- scoped_ptr<gfx::GpuMemoryBuffer> buffer(
- gles2::MojoGpuMemoryBufferImpl::Create(
- gfx::Size(static_cast<int>(width), static_cast<int>(height)),
- gpu::ImageFactory::DefaultBufferFormatForImageFormat(internalformat),
- gpu::ImageFactory::ImageUsageToGpuMemoryBufferUsage(usage)));
+ scoped_ptr<gfx::GpuMemoryBuffer> buffer(MojoGpuMemoryBufferImpl::Create(
+ gfx::Size(static_cast<int>(width), static_cast<int>(height)),
+ gpu::ImageFactory::DefaultBufferFormatForImageFormat(internalformat),
+ gpu::ImageFactory::ImageUsageToGpuMemoryBufferUsage(usage)));
if (!buffer)
return -1;
return CreateImage(buffer->AsClientBuffer(), width, height, internalformat);
@@ -259,4 +257,4 @@ void CommandBufferLocal::OnSyncPointRetired() {
scheduler_->SetScheduled(true);
}
-} // namespace gles2
+} // namespace mus
« no previous file with comments | « components/mus/gles2/command_buffer_local.h ('k') | components/mus/gles2/command_buffer_local_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698