From 5ef7c8a6a70875d4430752d146bdcb069605d71d Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 21 Aug 2012 10:57:44 +0200 Subject: Imported WebKit commit 356d83016b090995d08ad568f2d2c243aa55e831 (http://svn.webkit.org/repository/webkit/trunk@126147) New snapshot including various build fixes for newer Qt 5 --- Source/WebKit/chromium/tests/CCSchedulerTest.cpp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'Source/WebKit/chromium/tests/CCSchedulerTest.cpp') diff --git a/Source/WebKit/chromium/tests/CCSchedulerTest.cpp b/Source/WebKit/chromium/tests/CCSchedulerTest.cpp index 41250884b..93ff66ea2 100644 --- a/Source/WebKit/chromium/tests/CCSchedulerTest.cpp +++ b/Source/WebKit/chromium/tests/CCSchedulerTest.cpp @@ -24,7 +24,7 @@ #include "config.h" -#include "cc/CCScheduler.h" +#include "CCScheduler.h" #include "CCSchedulerTestCommon.h" #include @@ -81,7 +81,7 @@ public: return CCScheduledActionDrawAndSwapResult(true, m_swapWillHappenIfDrawHappens); } - virtual void scheduledActionUpdateMoreResources() OVERRIDE { m_actions.push_back("scheduledActionUpdateMoreResources"); } + virtual void scheduledActionUpdateMoreResources(double) OVERRIDE { m_actions.push_back("scheduledActionUpdateMoreResources"); } virtual void scheduledActionCommit() OVERRIDE { m_actions.push_back("scheduledActionCommit"); } virtual void scheduledActionBeginContextRecreation() OVERRIDE { m_actions.push_back("scheduledActionBeginContextRecreation"); } virtual void scheduledActionAcquireLayerTexturesForMainThread() OVERRIDE { m_actions.push_back("scheduledActionAcquireLayerTexturesForMainThread"); } @@ -114,12 +114,10 @@ TEST(CCSchedulerTest, RequestCommit) client.reset(); // Since, hasMoreResourceUpdates is set to false, - // beginFrameComplete should updateMoreResources, then - // commit + // beginFrameComplete should commit scheduler->beginFrameComplete(); - EXPECT_EQ(2, client.numActions()); - EXPECT_STREQ("scheduledActionUpdateMoreResources", client.action(0)); - EXPECT_STREQ("scheduledActionCommit", client.action(1)); + EXPECT_EQ(1, client.numActions()); + EXPECT_STREQ("scheduledActionCommit", client.action(0)); EXPECT_TRUE(timeSource->active()); client.reset(); @@ -152,12 +150,10 @@ TEST(CCSchedulerTest, RequestCommitAfterBeginFrame) scheduler->setNeedsCommit(); // Since, hasMoreResourceUpdates is set to false, and another commit is - // needed, beginFrameComplete should updateMoreResources, then commit, then - // begin another frame. + // needed, beginFrameComplete should commit, then begin another frame. scheduler->beginFrameComplete(); - EXPECT_EQ(2, client.numActions()); - EXPECT_STREQ("scheduledActionUpdateMoreResources", client.action(0)); - EXPECT_STREQ("scheduledActionCommit", client.action(1)); + EXPECT_EQ(1, client.numActions()); + EXPECT_STREQ("scheduledActionCommit", client.action(0)); client.reset(); // Tick should draw but then begin another frame. @@ -257,7 +253,7 @@ public: return CCScheduledActionDrawAndSwapResult(true, true); } - virtual void scheduledActionUpdateMoreResources() OVERRIDE { } + virtual void scheduledActionUpdateMoreResources(double) OVERRIDE { } virtual void scheduledActionCommit() OVERRIDE { } virtual void scheduledActionBeginContextRecreation() OVERRIDE { } @@ -357,7 +353,7 @@ public: return CCScheduledActionDrawAndSwapResult(true, true); } - virtual void scheduledActionUpdateMoreResources() OVERRIDE { } + virtual void scheduledActionUpdateMoreResources(double) OVERRIDE { } virtual void scheduledActionCommit() OVERRIDE { } virtual void scheduledActionBeginContextRecreation() OVERRIDE { } -- cgit v1.2.1