| 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 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void OnSetSwapInterval(int interval) override; | 126 void OnSetSwapInterval(int interval) override; |
| 127 | 127 |
| 128 private: | 128 private: |
| 129 // Commit the |pending_overlays_| and clear the vector. Returns false if any | 129 // Commit the |pending_overlays_| and clear the vector. Returns false if any |
| 130 // fail to be committed. | 130 // fail to be committed. |
| 131 bool CommitAndClearPendingOverlays(); | 131 bool CommitAndClearPendingOverlays(); |
| 132 void UpdateSwapInterval(); | 132 void UpdateSwapInterval(); |
| 133 | 133 |
| 134 EGLSurface surface_; | 134 EGLSurface surface_; |
| 135 bool supports_post_sub_buffer_; | 135 bool supports_post_sub_buffer_; |
| 136 bool supports_swap_buffer_with_damage_; |
| 136 bool flips_vertically_; | 137 bool flips_vertically_; |
| 137 | 138 |
| 138 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; | 139 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; |
| 139 | 140 |
| 140 int swap_interval_; | 141 int swap_interval_; |
| 141 | 142 |
| 142 std::vector<GLSurfaceOverlay> pending_overlays_; | 143 std::vector<GLSurfaceOverlay> pending_overlays_; |
| 143 | 144 |
| 144 #if defined(OS_WIN) | 145 #if defined(OS_WIN) |
| 145 bool vsync_override_; | 146 bool vsync_override_; |
| (...skipping 60 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 gl | 214 } // namespace gl |
| 214 | 215 |
| 215 #endif // UI_GL_GL_SURFACE_EGL_H_ | 216 #endif // UI_GL_GL_SURFACE_EGL_H_ |
| OLD | NEW |