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

Side by Side Diff: ui/gl/gl_surface_egl.cc

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_implementation_ozone.cc ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This include must be here so that the includes provided transitively 5 // This include must be here so that the includes provided transitively
6 // by gl_surface_egl.h don't make it impossible to compile this code. 6 // by gl_surface_egl.h don't make it impossible to compile this code.
7 #include "third_party/mesa/src/include/GL/osmesa.h" 7 #include "third_party/mesa/src/include/GL/osmesa.h"
8 8
9 #include "ui/gl/gl_surface_egl.h" 9 #include "ui/gl/gl_surface_egl.h"
10 10
(...skipping 16 matching lines...) Expand all
27 #include "ui/gl/scoped_make_current.h" 27 #include "ui/gl/scoped_make_current.h"
28 #include "ui/gl/sync_control_vsync_provider.h" 28 #include "ui/gl/sync_control_vsync_provider.h"
29 29
30 #if defined(USE_X11) 30 #if defined(USE_X11)
31 extern "C" { 31 extern "C" {
32 #include <X11/Xlib.h> 32 #include <X11/Xlib.h>
33 } 33 }
34 #endif 34 #endif
35 35
36 #if defined (USE_OZONE) 36 #if defined (USE_OZONE)
37 #include "ui/gfx/ozone/surface_factory_ozone.h" 37 #include "ui/ozone/public/surface_factory_ozone.h"
38 #endif 38 #endif
39 39
40 #if !defined(EGL_FIXED_SIZE_ANGLE) 40 #if !defined(EGL_FIXED_SIZE_ANGLE)
41 #define EGL_FIXED_SIZE_ANGLE 0x3201 41 #define EGL_FIXED_SIZE_ANGLE 0x3201
42 #endif 42 #endif
43 43
44 using ui::GetLastEGLErrorString; 44 using ui::GetLastEGLErrorString;
45 45
46 namespace gfx { 46 namespace gfx {
47 47
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 EGL_BLUE_SIZE, 8, 122 EGL_BLUE_SIZE, 8,
123 EGL_GREEN_SIZE, 8, 123 EGL_GREEN_SIZE, 8,
124 EGL_RED_SIZE, 8, 124 EGL_RED_SIZE, 8,
125 EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, 125 EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
126 EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PBUFFER_BIT, 126 EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PBUFFER_BIT,
127 EGL_NONE 127 EGL_NONE
128 }; 128 };
129 129
130 #if defined(USE_OZONE) 130 #if defined(USE_OZONE)
131 const EGLint* config_attribs = 131 const EGLint* config_attribs =
132 SurfaceFactoryOzone::GetInstance()->GetEGLSurfaceProperties( 132 ui::SurfaceFactoryOzone::GetInstance()->GetEGLSurfaceProperties(
133 kConfigAttribs); 133 kConfigAttribs);
134 #else 134 #else
135 const EGLint* config_attribs = kConfigAttribs; 135 const EGLint* config_attribs = kConfigAttribs;
136 #endif 136 #endif
137 137
138 EGLint num_configs; 138 EGLint num_configs;
139 if (!eglChooseConfig(g_display, 139 if (!eglChooseConfig(g_display,
140 config_attribs, 140 config_attribs,
141 NULL, 141 NULL,
142 0, 142 0,
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 } 657 }
658 658
659 void* SurfacelessEGL::GetShareHandle() { 659 void* SurfacelessEGL::GetShareHandle() {
660 return NULL; 660 return NULL;
661 } 661 }
662 662
663 SurfacelessEGL::~SurfacelessEGL() { 663 SurfacelessEGL::~SurfacelessEGL() {
664 } 664 }
665 665
666 } // namespace gfx 666 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_implementation_ozone.cc ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698