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

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

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 f6e15a03a1263ea5153e34dc96c19a32e77848be..3d2ac952b8f3462c02ad99063885ee178a176700 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -22,13 +22,14 @@
#include "ui/gl/gl_image_memory.h"
#include "ui/gl/gl_surface.h"
-namespace mus {
+namespace gles2 {
const unsigned int GL_MAP_CHROMIUM = 0x78F1;
-CommandBufferLocal::CommandBufferLocal(CommandBufferLocalClient* client,
- gfx::AcceleratedWidget widget,
- const scoped_refptr<GpuState>& gpu_state)
+CommandBufferLocal::CommandBufferLocal(
+ CommandBufferLocalClient* client,
+ gfx::AcceleratedWidget widget,
+ const scoped_refptr<gles2::GpuState>& gpu_state)
: widget_(widget),
gpu_state_(gpu_state),
client_(client),
@@ -74,7 +75,7 @@
bool bind_generates_resource = false;
scoped_refptr<gpu::gles2::ContextGroup> context_group =
new gpu::gles2::ContextGroup(
- gpu_state_->mailbox_manager(), new GpuMemoryTracker,
+ gpu_state_->mailbox_manager(), new gles2::GpuMemoryTracker,
new gpu::gles2::ShaderTranslatorCache,
new gpu::gles2::FramebufferCompletenessCache, nullptr, nullptr,
nullptr, bind_generates_resource);
@@ -127,8 +128,8 @@
size_t width,
size_t height,
unsigned internalformat) {
- MojoGpuMemoryBufferImpl* gpu_memory_buffer =
- MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
+ gles2::MojoGpuMemoryBufferImpl* gpu_memory_buffer =
+ gles2::MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
scoped_refptr<gfx::GLImageMemory> image(new gfx::GLImageMemory(
gfx::Size(static_cast<int>(width), static_cast<int>(height)),
@@ -159,10 +160,11 @@
unsigned internalformat,
unsigned usage) {
DCHECK_EQ(usage, static_cast<unsigned>(GL_MAP_CHROMIUM));
- 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)));
+ 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)));
if (!buffer)
return -1;
return CreateImage(buffer->AsClientBuffer(), width, height, internalformat);
@@ -257,4 +259,4 @@
scheduler_->SetScheduled(true);
}
-} // namespace mus
+} // namespace gles2
« 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