Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: ui/gl/gl_surface_egl.h

Issue 2188063002: Update vsync override in PostSubBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 EGLNativeWindowType window_; 122 EGLNativeWindowType window_;
123 gfx::Size size_; 123 gfx::Size size_;
124 bool enable_fixed_size_angle_; 124 bool enable_fixed_size_angle_;
125 125
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 133
133 EGLSurface surface_; 134 EGLSurface surface_;
134 bool supports_post_sub_buffer_; 135 bool supports_post_sub_buffer_;
135 bool flips_vertically_; 136 bool flips_vertically_;
136 137
137 std::unique_ptr<gfx::VSyncProvider> vsync_provider_; 138 std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
138 139
139 int swap_interval_; 140 int swap_interval_;
140 141
141 std::vector<GLSurfaceOverlay> pending_overlays_; 142 std::vector<GLSurfaceOverlay> pending_overlays_;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 ~SurfacelessEGL() override; 206 ~SurfacelessEGL() override;
206 207
207 private: 208 private:
208 gfx::Size size_; 209 gfx::Size size_;
209 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 210 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
210 }; 211 };
211 212
212 } // namespace gl 213 } // namespace gl
213 214
214 #endif // UI_GL_GL_SURFACE_EGL_H_ 215 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698