From edb488ed1a6bf27fc0233de3d47edc5fbb623e41 Mon Sep 17 00:00:00 2001 From: vmpstr Date: Wed, 3 Dec 2014 08:10:06 -0800 Subject: cc: Ensure to issue only one NotifiyReadyTo* callback per manage tiles. This patch ensures that we only issue a single notification that we're ready to either activate or draw per manage tiles call. Previously it was possible that we might issue extra notifications due to tile manager's internal rescheduling. Comes with a test that fails without the patch and passes with the patch. R=reveman, danakj Review URL: https://codereview.chromium.org/779443003 Cr-Commit-Position: refs/heads/master@{#306616} --- cc/test/layer_tree_test.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cc/test/layer_tree_test.h') diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h index 2914cfc..863100b 100644 --- a/cc/test/layer_tree_test.h +++ b/cc/test/layer_tree_test.h @@ -98,6 +98,7 @@ class TestHooks : public AnimationDelegate { virtual void ScheduledActionAnimate() {} virtual void ScheduledActionCommit() {} virtual void ScheduledActionBeginOutputSurfaceCreation() {} + virtual void ScheduledActionManageTiles() {} // Implementation of AnimationDelegate: void NotifyAnimationStarted(base::TimeTicks monotonic_time, -- cgit v1.1