OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "ui/gl/init/gl_factory.h" | 5 #include "ui/gl/init/gl_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "ui/gl/gl_context.h" | 9 #include "ui/gl/gl_context.h" |
10 #include "ui/gl/gl_context_egl.h" | 10 #include "ui/gl/gl_context_egl.h" |
11 #include "ui/gl/gl_context_osmesa.h" | 11 #include "ui/gl/gl_context_osmesa.h" |
12 #include "ui/gl/gl_context_stub.h" | 12 #include "ui/gl/gl_context_stub.h" |
13 #include "ui/gl/gl_implementation.h" | 13 #include "ui/gl/gl_implementation.h" |
14 #include "ui/gl/gl_share_group.h" | 14 #include "ui/gl/gl_share_group.h" |
15 #include "ui/gl/gl_surface.h" | 15 #include "ui/gl/gl_surface.h" |
16 #include "ui/gl/gl_surface_egl.h" | 16 #include "ui/gl/gl_surface_egl.h" |
17 #include "ui/gl/gl_surface_osmesa.h" | 17 #include "ui/gl/gl_surface_osmesa.h" |
18 #include "ui/gl/gl_surface_ozone.h" | |
19 #include "ui/gl/gl_surface_stub.h" | 18 #include "ui/gl/gl_surface_stub.h" |
| 19 #include "ui/gl/init/gl_surface_ozone.h" |
20 #include "ui/ozone/public/ozone_platform.h" | 20 #include "ui/ozone/public/ozone_platform.h" |
21 #include "ui/ozone/public/surface_factory_ozone.h" | 21 #include "ui/ozone/public/surface_factory_ozone.h" |
22 #include "ui/ozone/public/surface_ozone_egl.h" | 22 #include "ui/ozone/public/surface_ozone_egl.h" |
23 | 23 |
24 namespace gl { | 24 namespace gl { |
25 namespace init { | 25 namespace init { |
26 | 26 |
27 scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group, | 27 scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group, |
28 GLSurface* compatible_surface, | 28 GLSurface* compatible_surface, |
29 GpuPreference gpu_preference) { | 29 GpuPreference gpu_preference) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 case kGLImplementationMockGL: | 93 case kGLImplementationMockGL: |
94 return new GLSurfaceStub; | 94 return new GLSurfaceStub; |
95 default: | 95 default: |
96 NOTREACHED(); | 96 NOTREACHED(); |
97 return nullptr; | 97 return nullptr; |
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 } // namespace init | 101 } // namespace init |
102 } // namespace gl | 102 } // namespace gl |
OLD | NEW |