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 #ifndef UI_OZONE_PLATFORM_CAST_GL_SURFACE_CAST_H_ | 5 #ifndef UI_OZONE_PLATFORM_CAST_GL_SURFACE_CAST_H_ |
6 #define UI_OZONE_PLATFORM_CAST_GL_SURFACE_CAST_H_ | 6 #define UI_OZONE_PLATFORM_CAST_GL_SURFACE_CAST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/gfx/geometry/size.h" | 9 #include "ui/gfx/geometry/size.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 const gfx::Rect& bounds_rect, | 35 const gfx::Rect& bounds_rect, |
36 const gfx::RectF& crop_rect) override; | 36 const gfx::RectF& crop_rect) override; |
37 EGLConfig GetConfig() override; | 37 EGLConfig GetConfig() override; |
38 | 38 |
39 protected: | 39 protected: |
40 ~GLSurfaceCast() override; | 40 ~GLSurfaceCast() override; |
41 | 41 |
42 gfx::AcceleratedWidget widget_; | 42 gfx::AcceleratedWidget widget_; |
43 GLOzoneEglCast* parent_; | 43 GLOzoneEglCast* parent_; |
44 bool supports_swap_buffer_with_bounds_; | 44 bool supports_swap_buffer_with_bounds_; |
| 45 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; |
45 | 46 |
46 private: | 47 private: |
47 DISALLOW_COPY_AND_ASSIGN(GLSurfaceCast); | 48 DISALLOW_COPY_AND_ASSIGN(GLSurfaceCast); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace ui | 51 } // namespace ui |
51 | 52 |
52 #endif // UI_OZONE_PLATFORM_CAST_GL_SURFACE_CAST_H_ | 53 #endif // UI_OZONE_PLATFORM_CAST_GL_SURFACE_CAST_H_ |
OLD | NEW |