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

Unified Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

Issue 2835763002: Use swap-promise to improve first* paint times (Closed)
Patch Set: address nit Created 3 years, 7 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 | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebLayerTreeView.h
diff --git a/third_party/WebKit/public/platform/WebLayerTreeView.h b/third_party/WebKit/public/platform/WebLayerTreeView.h
index 35b27082dddb4fc3bc8fa7e55b632f92cdfa2d4f..19e128c17a1b67630898daa304a1f389d136dd32 100644
--- a/third_party/WebKit/public/platform/WebLayerTreeView.h
+++ b/third_party/WebKit/public/platform/WebLayerTreeView.h
@@ -33,6 +33,7 @@
#include "WebEventListenerProperties.h"
#include "WebFloatPoint.h"
#include "WebSize.h"
+#include "base/callback.h"
#include "cc/surfaces/frame_sink_id.h"
namespace cc {
@@ -48,6 +49,8 @@ struct WebPoint;
class WebSelection;
class WebLayerTreeView {
+ using ReportTimeCallback = base::Callback<void(bool, double)>;
+
public:
virtual ~WebLayerTreeView() {}
@@ -181,6 +184,10 @@ class WebLayerTreeView {
// Toggles scroll bottleneck rects on the HUD layer
virtual void SetShowScrollBottleneckRects(bool) {}
+
+ // ReportTimeCallback is a callback that should be fired when the
+ // corresponding Swap completes (either with DidSwap or DidNotSwap).
+ virtual void NotifySwapTime(ReportTimeCallback callback) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698