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

Unified Diff: content/browser/compositor/delegated_frame_host.h

Issue 418283003: "Buttery Smooth" Tab Capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/compositor/delegated_frame_host.h
diff --git a/content/browser/compositor/delegated_frame_host.h b/content/browser/compositor/delegated_frame_host.h
index a7404723608e94ac6d9d078f5dc6a580deb71436..c5a0fbb347aed1271851dfa84edd8ca81d7e6569 100644
--- a/content/browser/compositor/delegated_frame_host.h
+++ b/content/browser/compositor/delegated_frame_host.h
@@ -212,7 +212,7 @@ class CONTENT_EXPORT DelegatedFrameHost
// cc::DelegatedFrameProviderClient implementation.
virtual void UnusedResourcesAreAvailable() OVERRIDE;
- void DidReceiveFrameFromRenderer();
+ void DidReceiveFrameFromRenderer(const gfx::Rect& damage_rect);
DelegatedFrameHostClient* client_;
@@ -221,6 +221,11 @@ class CONTENT_EXPORT DelegatedFrameHost
// The vsync manager we are observing for changes, if any.
scoped_refptr<ui::CompositorVSyncManager> vsync_manager_;
+ // The current VSync timebase and interval. These are zero until the first
+ // call to OnUpdateVSyncParameters().
+ base::TimeTicks vsync_timebase_;
+ base::TimeDelta vsync_interval_;
+
// With delegated renderer, this is the last output surface, used to
// disambiguate resources with the same id coming from different output
// surfaces.

Powered by Google App Engine
This is Rietveld 408576698