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: ui/ozone/demo/surfaceless_gl_renderer.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/common/stub_client_native_pixmap_factory.cc ('k') | ui/ozone/generate_constructor_list.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/surfaceless_gl_renderer.cc
diff --git a/ui/ozone/demo/surfaceless_gl_renderer.cc b/ui/ozone/demo/surfaceless_gl_renderer.cc
index ddade3fb6d5b450376886891144a94374dc9e512..dfbcb95a665109d7f2884b6b31df8faf6f3a8ba5 100644
--- a/ui/ozone/demo/surfaceless_gl_renderer.cc
+++ b/ui/ozone/demo/surfaceless_gl_renderer.cc
@@ -41,12 +41,12 @@ bool SurfacelessGlRenderer::BufferWrapper::Initialize(
glGenTextures(1, &gl_tex_);
gfx::BufferFormat format = display::DisplaySnapshot::PrimaryFormat();
- scoped_refptr<NativePixmap> pixmap =
+ scoped_refptr<gfx::NativePixmap> pixmap =
OzonePlatform::GetInstance()
->GetSurfaceFactoryOzone()
->CreateNativePixmap(widget, size, format, gfx::BufferUsage::SCANOUT);
- scoped_refptr<ui::GLImageNativePixmap> image(
- new ui::GLImageNativePixmap(size, GL_RGB));
+ scoped_refptr<gl::GLImageNativePixmap> image(
+ new gl::GLImageNativePixmap(size, GL_RGB));
if (!image->Initialize(pixmap.get(), format)) {
LOG(ERROR) << "Failed to create GLImage";
return false;
« no previous file with comments | « ui/ozone/common/stub_client_native_pixmap_factory.cc ('k') | ui/ozone/generate_constructor_list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698