| 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/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 #include "ui/gfx/geometry/rect_f.h" | 14 #include "ui/gfx/geometry/rect_f.h" |
| 15 #include "ui/gfx/geometry/size.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 16 #include "ui/gfx/overlay_transform.h" | 17 #include "ui/gfx/overlay_transform.h" |
| 17 #include "ui/gfx/size.h" | |
| 18 #include "ui/gl/gl_export.h" | 18 #include "ui/gl/gl_export.h" |
| 19 #include "ui/gl/gl_implementation.h" | 19 #include "ui/gl/gl_implementation.h" |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 | 22 |
| 23 class GLContext; | 23 class GLContext; |
| 24 class GLImage; | 24 class GLImage; |
| 25 class VSyncProvider; | 25 class VSyncProvider; |
| 26 | 26 |
| 27 // Encapsulates a surface that can be rendered to with GL, hiding platform | 27 // Encapsulates a surface that can be rendered to with GL, hiding platform |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 private: | 230 private: |
| 231 scoped_refptr<GLSurface> surface_; | 231 scoped_refptr<GLSurface> surface_; |
| 232 | 232 |
| 233 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); | 233 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 } // namespace gfx | 236 } // namespace gfx |
| 237 | 237 |
| 238 #endif // UI_GL_GL_SURFACE_H_ | 238 #endif // UI_GL_GL_SURFACE_H_ |
| OLD | NEW |