| 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_H_ | 5 #ifndef UI_GL_GL_SURFACE_H_ |
| 6 #define UI_GL_GL_SURFACE_H_ | 6 #define UI_GL_GL_SURFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/gfx/geometry/rect_f.h" | 15 #include "ui/gfx/geometry/rect_f.h" |
| 16 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 #include "ui/gfx/overlay_transform.h" | 18 #include "ui/gfx/overlay_transform.h" |
| 19 #include "ui/gfx/swap_result.h" | 19 #include "ui/gfx/swap_result.h" |
| 20 #include "ui/gl/gl_export.h" | 20 #include "ui/gl/gl_export.h" |
| 21 #include "ui/gl/gl_image.h" | 21 #include "ui/gl/gl_image.h" |
| 22 #include "ui/gl/gl_implementation.h" | 22 #include "ui/gl/gl_implementation.h" |
| 23 | 23 |
| 24 namespace gfx { | 24 namespace gfx { |
| 25 class Transform; | |
| 26 class VSyncProvider; | 25 class VSyncProvider; |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace ui { | 28 namespace ui { |
| 30 struct CARendererLayerParams; | 29 struct CARendererLayerParams; |
| 31 } | 30 } |
| 32 | 31 |
| 33 namespace gl { | 32 namespace gl { |
| 34 | 33 |
| 35 class GLContext; | 34 class GLContext; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 295 |
| 297 // Wraps GLSurface in scoped_refptr and tries to initializes it. Returns a | 296 // Wraps GLSurface in scoped_refptr and tries to initializes it. Returns a |
| 298 // scoped_refptr containing the initialized GLSurface or nullptr if | 297 // scoped_refptr containing the initialized GLSurface or nullptr if |
| 299 // initialization fails. | 298 // initialization fails. |
| 300 GL_EXPORT scoped_refptr<GLSurface> InitializeGLSurface( | 299 GL_EXPORT scoped_refptr<GLSurface> InitializeGLSurface( |
| 301 scoped_refptr<GLSurface> surface); | 300 scoped_refptr<GLSurface> surface); |
| 302 | 301 |
| 303 } // namespace gl | 302 } // namespace gl |
| 304 | 303 |
| 305 #endif // UI_GL_GL_SURFACE_H_ | 304 #endif // UI_GL_GL_SURFACE_H_ |
| OLD | NEW |