OLD | NEW |
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 #ifndef UI_GL_GL_SURFACE_EGL_H_ | 5 #ifndef UI_GL_GL_SURFACE_EGL_H_ |
6 #define UI_GL_GL_SURFACE_EGL_H_ | 6 #define UI_GL_GL_SURFACE_EGL_H_ |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include <memory> | 12 #include <memory> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
21 #include "ui/gfx/vsync_provider.h" | 21 #include "ui/gfx/vsync_provider.h" |
22 #include "ui/gl/gl_bindings.h" | 22 #include "ui/gl/gl_bindings.h" |
| 23 #include "ui/gl/gl_export.h" |
23 #include "ui/gl/gl_surface.h" | 24 #include "ui/gl/gl_surface.h" |
24 #include "ui/gl/gl_surface_overlay.h" | 25 #include "ui/gl/gl_surface_overlay.h" |
25 | 26 |
26 namespace gfx { | 27 namespace gfx { |
27 | 28 |
28 // Get default EGL display for GLSurfaceEGL (differs by platform). | 29 // Get default EGL display for GLSurfaceEGL (differs by platform). |
29 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay(); | 30 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay(); |
30 | 31 |
31 // If adding a new type, also add it to EGLDisplayType in | 32 // If adding a new type, also add it to EGLDisplayType in |
32 // tools/metrics/histograms/histograms.xml. Don't remove or reorder entries. | 33 // tools/metrics/histograms/histograms.xml. Don't remove or reorder entries. |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 ~SurfacelessEGL() override; | 207 ~SurfacelessEGL() override; |
207 | 208 |
208 private: | 209 private: |
209 gfx::Size size_; | 210 gfx::Size size_; |
210 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); | 211 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); |
211 }; | 212 }; |
212 | 213 |
213 } // namespace gfx | 214 } // namespace gfx |
214 | 215 |
215 #endif // UI_GL_GL_SURFACE_EGL_H_ | 216 #endif // UI_GL_GL_SURFACE_EGL_H_ |
OLD | NEW |