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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 16863005: cc: Add BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@nofrc12
Patch Set: Created 7 years, 6 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
Index: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 4581e69de484b610aab3ea77323e0ef096f24bf3..04dcaa934b4e4afca5e26cb8a5d78f19cd82fc02 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -297,7 +297,7 @@ class ContentViewCoreImpl : public ContentViewCore,
void AttachLayer(scoped_refptr<cc::Layer> layer);
void RemoveLayer(scoped_refptr<cc::Layer> layer);
- void SetVSyncNotificationEnabled(bool enabled);
+ void SetNeedsBeginFrame(bool enabled);
void SetNeedsAnimate();
private:
@@ -349,6 +349,10 @@ class ContentViewCoreImpl : public ContentViewCore,
// Device scale factor.
float dpi_scale_;
+ // Variables used to keep track of frame timestamps and deadlines.
+ base::TimeDelta vsync_interval_;
+ base::TimeDelta expected_browser_composite_time_;
+
// The Android view that can be used to add and remove decoration layers
// like AutofillPopup.
ui::ViewAndroid* view_android_;

Powered by Google App Engine
This is Rietveld 408576698