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

Unified Diff: ui/gl/gl_surface_glx.cc

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Fix copyright notice on new files Created 3 years, 11 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_glx.h ('k') | ui/gl/gl_surface_osmesa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_glx.cc
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc
index 2ba52fbf61cad8e78e78df3f2213dc68ab2096a2..37ef1103c1fdde836dde4b14c509e3d1b3e1d4fe 100644
--- a/ui/gl/gl_surface_glx.cc
+++ b/ui/gl/gl_surface_glx.cc
@@ -513,7 +513,7 @@ GLXDrawable NativeViewGLSurfaceGLX::GetDrawableHandle() const {
return glx_window_;
}
-bool NativeViewGLSurfaceGLX::Initialize(GLSurface::Format format) {
+bool NativeViewGLSurfaceGLX::Initialize(GLSurfaceFormat format) {
XWindowAttributes attributes;
if (!XGetWindowAttributes(g_display, parent_window_, &attributes)) {
LOG(ERROR) << "XGetWindowAttributes failed for window " << parent_window_
@@ -657,7 +657,7 @@ UnmappedNativeViewGLSurfaceGLX::UnmappedNativeViewGLSurfaceGLX(
size_.SetSize(1, 1);
}
-bool UnmappedNativeViewGLSurfaceGLX::Initialize(GLSurface::Format format) {
+bool UnmappedNativeViewGLSurfaceGLX::Initialize(GLSurfaceFormat format) {
DCHECK(!window_);
gfx::AcceleratedWidget parent_window = DefaultRootWindow(g_display);
« no previous file with comments | « ui/gl/gl_surface_glx.h ('k') | ui/gl/gl_surface_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698