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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 2014223002: Follow-up fixes to changing namespace gfx to gl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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/gl/gl_surface_overlay.cc ('k') | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 0211d8318819fc35bc670931048a132a0155deda..c5a285536ac0fd7ebf8fb284070e494b0eeb194e 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -32,8 +32,6 @@
#include "ui/ozone/public/surface_factory_ozone.h"
#include "ui/ozone/public/surface_ozone_egl.h"
-using gl::GLImage;
-
namespace gl {
namespace {
@@ -76,7 +74,7 @@ class GL_EXPORT GLSurfaceOzoneEGL : public NativeViewGLSurfaceEGL {
gfx::AcceleratedWidget widget);
// GLSurface:
- bool Initialize(gl::GLSurface::Format format) override;
+ bool Initialize(GLSurface::Format format) override;
bool Resize(const gfx::Size& size,
float scale_factor,
bool has_alpha) override;
@@ -109,7 +107,7 @@ GLSurfaceOzoneEGL::GLSurfaceOzoneEGL(
ozone_surface_(std::move(ozone_surface)),
widget_(widget) {}
-bool GLSurfaceOzoneEGL::Initialize(gl::GLSurface::Format format) {
+bool GLSurfaceOzoneEGL::Initialize(GLSurface::Format format) {
format_ = format;
return Initialize(ozone_surface_->CreateVSyncProvider());
}
@@ -190,7 +188,7 @@ class GL_EXPORT GLSurfaceOzoneSurfaceless : public SurfacelessEGL {
gfx::AcceleratedWidget widget);
// GLSurface:
- bool Initialize(gl::GLSurface::Format format) override;
+ bool Initialize(GLSurface::Format format) override;
bool Resize(const gfx::Size& size,
float scale_factor,
bool has_alpha) override;
@@ -273,7 +271,7 @@ GLSurfaceOzoneSurfaceless::GLSurfaceOzoneSurfaceless(
unsubmitted_frames_.push_back(new PendingFrame());
}
-bool GLSurfaceOzoneSurfaceless::Initialize(gl::GLSurface::Format format) {
+bool GLSurfaceOzoneSurfaceless::Initialize(GLSurface::Format format) {
if (!SurfacelessEGL::Initialize(format))
return false;
vsync_provider_ = ozone_surface_->CreateVSyncProvider();
@@ -578,15 +576,15 @@ void GLSurfaceOzoneSurfacelessSurfaceImpl::SwapBuffersAsync(
void GLSurfaceOzoneSurfacelessSurfaceImpl::Destroy() {
if (!context_)
return;
- scoped_refptr<gl::GLContext> previous_context = gl::GLContext::GetCurrent();
- scoped_refptr<gl::GLSurface> previous_surface;
+ scoped_refptr<GLContext> previous_context = GLContext::GetCurrent();
+ scoped_refptr<GLSurface> previous_surface;
bool was_current = previous_context && previous_context->IsCurrent(nullptr) &&
- gl::GLSurface::GetCurrent() == this;
+ GLSurface::GetCurrent() == this;
if (!was_current) {
// Only take a reference to previous surface if it's not |this|
// because otherwise we can take a self reference from our own dtor.
- previous_surface = gl::GLSurface::GetCurrent();
+ previous_surface = GLSurface::GetCurrent();
context_->MakeCurrent(this);
}
« no previous file with comments | « ui/gl/gl_surface_overlay.cc ('k') | ui/gl/gl_surface_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698