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

Unified Diff: ui/compositor/compositor.h

Issue 1040813002: Revert of Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 545684dae70f2e7892de583f060a0f4ba5ee3566..5a6d93290350c5f67fc0035804c3478803d49cc0 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -218,16 +218,11 @@
// Gets the visibility of the underlying compositor.
bool IsVisible();
- // The "authoritative" vsync interval, if provided, will override interval
- // reported from 3D context. This is typically the value reported by a more
- // reliable source, e.g, the platform display configuration.
- // In the particular case of ChromeOS -- this is the value queried through
- // XRandR, which is more reliable than the value queried through the 3D
- // context.
- void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval);
-
// Returns the widget for this compositor.
gfx::AcceleratedWidget widget() const { return widget_; }
+
+ // Returns the vsync manager for this compositor.
+ scoped_refptr<CompositorVSyncManager> vsync_manager() const;
// Returns the main thread task runner this compositor uses. Users of the
// compositor generally shouldn't use this.
@@ -340,6 +335,9 @@
scoped_ptr<cc::LayerTreeHost> host_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ // The manager of vsync parameters for this compositor.
+ scoped_refptr<CompositorVSyncManager> vsync_manager_;
+
// The device scale factor of the monitor that this compositor is compositing
// layers on.
float device_scale_factor_;
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698