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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_surface.cc

Issue 2768343002: Change namespace from ui to gfx for NativePixmap related code (Closed)
Patch Set: Addressed sadrul's remark Created 3 years, 9 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 | « ui/ozone/platform/drm/gpu/gbm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/gbm_surface.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_surface.cc b/ui/ozone/platform/drm/gpu/gbm_surface.cc
index ac533d2246b2746296e12af7147bc05e1d978f48..5995d899c13280c3f3f32c4168168e12f62d80bd 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surface.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_surface.cc
@@ -122,13 +122,14 @@ bool GbmSurface::CreatePixmaps() {
if (!fbo_)
return true;
for (size_t i = 0; i < arraysize(textures_); i++) {
- scoped_refptr<NativePixmap> pixmap = surface_factory()->CreateNativePixmap(
- widget(), GetSize(), gfx::BufferFormat::BGRA_8888,
- gfx::BufferUsage::SCANOUT);
+ scoped_refptr<gfx::NativePixmap> pixmap =
+ surface_factory()->CreateNativePixmap(widget(), GetSize(),
+ gfx::BufferFormat::BGRA_8888,
+ gfx::BufferUsage::SCANOUT);
if (!pixmap)
return false;
- scoped_refptr<GLImageNativePixmap> image =
- new GLImageNativePixmap(GetSize(), GL_BGRA_EXT);
+ scoped_refptr<gl::GLImageNativePixmap> image =
+ new gl::GLImageNativePixmap(GetSize(), GL_BGRA_EXT);
if (!image->Initialize(pixmap.get(), gfx::BufferFormat::BGRA_8888))
return false;
images_[i] = image;
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_buffer.h ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698