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

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: Now pixel-weighted. Lots of add'l unit tests. (rebased against ToT) 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 b1daabbd6e687ae8b8808459986f3e6f70f1f52c..f47ee0f6c683534d9a81d08e116256b26d37023d 100644
--- a/content/browser/compositor/delegated_frame_host.h
+++ b/content/browser/compositor/delegated_frame_host.h
@@ -222,7 +222,7 @@ class CONTENT_EXPORT DelegatedFrameHost
virtual void ReturnResources(
const cc::ReturnedResourceArray& resources) OVERRIDE;
- void DidReceiveFrameFromRenderer();
+ void DidReceiveFrameFromRenderer(const gfx::Rect& damage_rect);
DelegatedFrameHostClient* client_;
@@ -235,6 +235,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