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

Unified Diff: content/child/web_gesture_curve_impl.h

Issue 764403002: Expand UMA coverage for compositor-handled events and fling FPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years 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/child/web_gesture_curve_impl.h
diff --git a/content/child/web_gesture_curve_impl.h b/content/child/web_gesture_curve_impl.h
index cb0d0bfeef5622d9ceec617ad3fec299504eb9ed..026158ce9060d69d4195912b43e5023742b2627e 100644
--- a/content/child/web_gesture_curve_impl.h
+++ b/content/child/web_gesture_curve_impl.h
@@ -26,8 +26,9 @@ class CONTENT_EXPORT WebGestureCurveImpl
public:
static scoped_ptr<blink::WebGestureCurve> CreateFromDefaultPlatformCurve(
const gfx::Vector2dF& initial_velocity,
- const gfx::Vector2dF& initial_offset);
- static scoped_ptr<blink::WebGestureCurve> CreateFrom(
+ const gfx::Vector2dF& initial_offset,
+ bool on_main_thread);
+ static scoped_ptr<blink::WebGestureCurve> CreateFromUICurveForTesting(
scoped_ptr<ui::GestureCurve> curve,
const gfx::Vector2dF& initial_offset);
@@ -38,13 +39,25 @@ class CONTENT_EXPORT WebGestureCurveImpl
blink::WebGestureCurveTarget* target) override;
private:
+ enum class ThreadType {
+ MAIN,
+ IMPL,
+ TEST
+ };
+
WebGestureCurveImpl(scoped_ptr<ui::GestureCurve> curve,
- const gfx::Vector2dF& initial_offset);
+ const gfx::Vector2dF& initial_offset,
+ ThreadType animating_thread_type);
scoped_ptr<ui::GestureCurve> curve_;
gfx::Vector2dF last_offset_;
+ ThreadType animating_thread_type_;
+ int64 ticks_since_first_animate_;
+ double first_animate_time_;
+ double last_animate_time_;
+
DISALLOW_COPY_AND_ASSIGN(WebGestureCurveImpl);
};

Powered by Google App Engine
This is Rietveld 408576698