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

Side by Side Diff: ui/compositor/compositor.h

Issue 791373003: Add Set Authoritative VSync Interval function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Signals swap has been posted. 238 // Signals swap has been posted.
239 void OnSwapBuffersPosted(); 239 void OnSwapBuffersPosted();
240 240
241 // Signals swap has completed. 241 // Signals swap has completed.
242 void OnSwapBuffersComplete(); 242 void OnSwapBuffersComplete();
243 243
244 // Signals swap has aborted (e.g. lost context). 244 // Signals swap has aborted (e.g. lost context).
245 void OnSwapBuffersAborted(); 245 void OnSwapBuffersAborted();
246 246
247 // The "authoritative" vsync interval, if provided, will override interval
248 // reported from 3D context. This is typically the value reported by a more
249 // reliable source, e.g, the platform display configuration.
250 // In the particular case of ChromeOS -- this is the value queried through
251 // XRandR, which is more reliable than the value queried through the 3D
252 // context.
253 void SetAuthoritativeVSyncInterval(base::TimeDelta interval) const;
254
247 // LayerTreeHostClient implementation. 255 // LayerTreeHostClient implementation.
248 void WillBeginMainFrame(int frame_id) override {} 256 void WillBeginMainFrame(int frame_id) override {}
249 void DidBeginMainFrame() override {} 257 void DidBeginMainFrame() override {}
250 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 258 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
251 void Layout() override; 259 void Layout() override;
252 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, 260 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta,
253 const gfx::Vector2d& outer_delta, 261 const gfx::Vector2d& outer_delta,
254 const gfx::Vector2dF& elastic_overscroll_delta, 262 const gfx::Vector2dF& elastic_overscroll_delta,
255 float page_scale, 263 float page_scale,
256 float top_controls_delta) override {} 264 float top_controls_delta) override {}
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 LayerAnimatorCollection layer_animator_collection_; 359 LayerAnimatorCollection layer_animator_collection_;
352 360
353 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 361 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
354 362
355 DISALLOW_COPY_AND_ASSIGN(Compositor); 363 DISALLOW_COPY_AND_ASSIGN(Compositor);
356 }; 364 };
357 365
358 } // namespace ui 366 } // namespace ui
359 367
360 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 368 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698