Changeset 121863 in webkit
- Timestamp:
- Jul 4, 2012 10:18:17 AM (12 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r121861 r121863 1 2012-07-04 Dana Jansens <danakj@chromium.org> 2 3 [chromium] Remove CCLayerTreeHostTestThreadOnly class to cleanup CCLayerTreeHostTests 4 https://bugs.webkit.org/show_bug.cgi?id=90556 5 6 Reviewed by Adrienne Walker. 7 8 Currently many tests that run both single and threaded versions subclass 9 from CCLayerTreeHostTestThreadOnly just from copy/pasting. The class 10 only adds a runTestThreaded() which calls runTest(true). Many other 11 tests do run only in threaded mode call runTest(true) themselves, making 12 for an inconsistent mess. 13 14 We remove CCLayerTreeHostTestThreadOnly class, so we don't have tests 15 inheriting it that are not thread-only. And now all tests that are 16 thread-only call runTest(true) consistently. 17 18 * tests/CCLayerTreeHostTest.cpp: 19 (WTF::TEST_F): 20 1 21 2012-07-04 John Mellor <johnme@chromium.org> 2 22 -
trunk/Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp
r121628 r121863 58 58 59 59 class CCLayerTreeHostTest : public CCThreadedTest { }; 60 class CCLayerTreeHostTestThreadOnly : public CCThreadedTestThreadOnly { };61 60 62 61 // Shortlived layerTreeHosts shouldn't die. … … 126 125 127 126 // Test interleaving of redraws and commits 128 class CCLayerTreeHostTestCommitingWithContinuousRedraw : public CCLayerTreeHostTest ThreadOnly{127 class CCLayerTreeHostTestCommitingWithContinuousRedraw : public CCLayerTreeHostTest { 129 128 public: 130 129 CCLayerTreeHostTestCommitingWithContinuousRedraw() … … 165 164 TEST_F(CCLayerTreeHostTestCommitingWithContinuousRedraw, runMultiThread) 166 165 { 167 runTest Threaded();166 runTest(true); 168 167 } 169 168 170 169 // Two setNeedsCommits in a row should lead to at least 1 commit and at least 1 171 170 // draw with frame 0. 172 class CCLayerTreeHostTestSetNeedsCommit1 : public CCLayerTreeHostTest ThreadOnly{171 class CCLayerTreeHostTestSetNeedsCommit1 : public CCLayerTreeHostTest { 173 172 public: 174 173 CCLayerTreeHostTestSetNeedsCommit1() … … 209 208 TEST_F(CCLayerTreeHostTestSetNeedsCommit1, DISABLED_runMultiThread) 210 209 { 211 runTest Threaded();210 runTest(true); 212 211 } 213 212 214 213 // A setNeedsCommit should lead to 1 commit. Issuing a second commit after that 215 214 // first committed frame draws should lead to another commit. 216 class CCLayerTreeHostTestSetNeedsCommit2 : public CCLayerTreeHostTest ThreadOnly{215 class CCLayerTreeHostTestSetNeedsCommit2 : public CCLayerTreeHostTest { 217 216 public: 218 217 CCLayerTreeHostTestSetNeedsCommit2() … … 258 257 #endif 259 258 { 260 runTest Threaded();259 runTest(true); 261 260 } 262 261 263 262 // 1 setNeedsRedraw after the first commit has completed should lead to 1 264 263 // additional draw. 265 class CCLayerTreeHostTestSetNeedsRedraw : public CCLayerTreeHostTest ThreadOnly{264 class CCLayerTreeHostTestSetNeedsRedraw : public CCLayerTreeHostTest { 266 265 public: 267 266 CCLayerTreeHostTestSetNeedsRedraw() … … 305 304 TEST_F(CCLayerTreeHostTestSetNeedsRedraw, runMultiThread) 306 305 { 307 runTest Threaded();306 runTest(true); 308 307 } 309 308 310 309 // If the layerTreeHost says it can't draw, then we should not try to draw. 311 class CCLayerTreeHostTestCanDrawBlocksDrawing : public CCLayerTreeHostTest ThreadOnly{310 class CCLayerTreeHostTestCanDrawBlocksDrawing : public CCLayerTreeHostTest { 312 311 public: 313 312 CCLayerTreeHostTestCanDrawBlocksDrawing() … … 363 362 364 363 // beginLayerWrite should prevent draws from executing until a commit occurs 365 class CCLayerTreeHostTestWriteLayersRedraw : public CCLayerTreeHostTest ThreadOnly{364 class CCLayerTreeHostTestWriteLayersRedraw : public CCLayerTreeHostTest { 366 365 public: 367 366 CCLayerTreeHostTestWriteLayersRedraw() … … 402 401 TEST_F(CCLayerTreeHostTestWriteLayersRedraw, runMultiThread) 403 402 { 404 runTest Threaded();403 runTest(true); 405 404 } 406 405 … … 410 409 // switching. There are no failure conditions to this test, it just passes 411 410 // by not timing out. 412 class CCLayerTreeHostTestWriteLayersAfterVisible : public CCLayerTreeHostTest ThreadOnly{411 class CCLayerTreeHostTestWriteLayersAfterVisible : public CCLayerTreeHostTest { 413 412 public: 414 413 CCLayerTreeHostTestWriteLayersAfterVisible() … … 445 444 TEST_F(CCLayerTreeHostTestWriteLayersAfterVisible, runMultiThread) 446 445 { 447 runTest Threaded();446 runTest(true); 448 447 } 449 448 450 449 // A compositeAndReadback while invisible should force a normal commit without assertion. 451 class CCLayerTreeHostTestCompositeAndReadbackWhileInvisible : public CCLayerTreeHostTest ThreadOnly{450 class CCLayerTreeHostTestCompositeAndReadbackWhileInvisible : public CCLayerTreeHostTest { 452 451 public: 453 452 CCLayerTreeHostTestCompositeAndReadbackWhileInvisible() … … 484 483 TEST_F(CCLayerTreeHostTestCompositeAndReadbackWhileInvisible, runMultiThread) 485 484 { 486 runTest Threaded();487 } 488 489 class CCLayerTreeHostTestAbortFrameWhenInvisible : public CCLayerTreeHostTest ThreadOnly{485 runTest(true); 486 } 487 488 class CCLayerTreeHostTestAbortFrameWhenInvisible : public CCLayerTreeHostTest { 490 489 public: 491 490 CCLayerTreeHostTestAbortFrameWhenInvisible() … … 518 517 TEST_F(CCLayerTreeHostTestAbortFrameWhenInvisible, runMultiThread) 519 518 { 520 runTest Threaded();519 runTest(true); 521 520 } 522 521 … … 527 526 // handling the case where setNeedsAnimate() is called inside the begin frame 528 527 // flow. 529 class CCLayerTreeHostTestSetNeedsAnimateInsideAnimationCallback : public CCLayerTreeHostTest ThreadOnly{528 class CCLayerTreeHostTestSetNeedsAnimateInsideAnimationCallback : public CCLayerTreeHostTest { 530 529 public: 531 530 CCLayerTreeHostTestSetNeedsAnimateInsideAnimationCallback() … … 559 558 TEST_F(CCLayerTreeHostTestSetNeedsAnimateInsideAnimationCallback, runMultiThread) 560 559 { 561 runTest Threaded();560 runTest(true); 562 561 } 563 562 564 563 // Add a layer animation and confirm that CCLayerTreeHostImpl::animateLayers does get 565 564 // called and continues to get called. 566 class CCLayerTreeHostTestAddAnimation : public CCLayerTreeHostTest ThreadOnly{565 class CCLayerTreeHostTestAddAnimation : public CCLayerTreeHostTest { 567 566 public: 568 567 CCLayerTreeHostTestAddAnimation() … … 615 614 TEST_F(CCLayerTreeHostTestAddAnimation, runMultiThread) 616 615 { 617 runTest Threaded();616 runTest(true); 618 617 } 619 618 620 619 // Add a layer animation to a layer, but continually fail to draw. Confirm that after 621 620 // a while, we do eventually force a draw. 622 class CCLayerTreeHostTestCheckerboardDoesNotStarveDraws : public CCLayerTreeHostTest ThreadOnly{621 class CCLayerTreeHostTestCheckerboardDoesNotStarveDraws : public CCLayerTreeHostTest { 623 622 public: 624 623 CCLayerTreeHostTestCheckerboardDoesNotStarveDraws() … … 659 658 TEST_F(CCLayerTreeHostTestCheckerboardDoesNotStarveDraws, runMultiThread) 660 659 { 661 runTest Threaded();660 runTest(true); 662 661 } 663 662 664 663 // Ensures that animations continue to be ticked when we are backgrounded. 665 class CCLayerTreeHostTestTickAnimationWhileBackgrounded : public CCLayerTreeHostTest ThreadOnly{664 class CCLayerTreeHostTestTickAnimationWhileBackgrounded : public CCLayerTreeHostTest { 666 665 public: 667 666 CCLayerTreeHostTestTickAnimationWhileBackgrounded() … … 702 701 703 702 // Ensures that animations continue to be ticked when we are backgrounded. 704 class CCLayerTreeHostTestAddAnimationWithTimingFunction : public CCLayerTreeHostTest ThreadOnly{703 class CCLayerTreeHostTestAddAnimationWithTimingFunction : public CCLayerTreeHostTest { 705 704 public: 706 705 CCLayerTreeHostTestAddAnimationWithTimingFunction() … … 740 739 741 740 // Ensures that when opacity is being animated, this value does not cause the subtree to be skipped. 742 class CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity : public CCLayerTreeHostTest ThreadOnly{741 class CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity : public CCLayerTreeHostTest { 743 742 public: 744 743 CCLayerTreeHostTestDoNotSkipLayersWithAnimatedOpacity() … … 775 774 #endif 776 775 { 777 runTest Threaded();776 runTest(true); 778 777 } 779 778 780 779 // Ensures that main thread animations have their start times synchronized with impl thread animations. 781 class CCLayerTreeHostTestSynchronizeAnimationStartTimes : public CCLayerTreeHostTest ThreadOnly{780 class CCLayerTreeHostTestSynchronizeAnimationStartTimes : public CCLayerTreeHostTest { 782 781 public: 783 782 CCLayerTreeHostTestSynchronizeAnimationStartTimes() … … 822 821 823 822 // Ensures that main thread animations have their start times synchronized with impl thread animations. 824 class CCLayerTreeHostTestAnimationFinishedEvents : public CCLayerTreeHostTest ThreadOnly{823 class CCLayerTreeHostTestAnimationFinishedEvents : public CCLayerTreeHostTest { 825 824 public: 826 825 CCLayerTreeHostTestAnimationFinishedEvents() … … 847 846 SINGLE_AND_MULTI_THREAD_TEST_F(CCLayerTreeHostTestAnimationFinishedEvents) 848 847 849 class CCLayerTreeHostTestScrollSimple : public CCLayerTreeHostTest ThreadOnly{848 class CCLayerTreeHostTestScrollSimple : public CCLayerTreeHostTest { 850 849 public: 851 850 CCLayerTreeHostTestScrollSimple() … … 917 916 TEST_F(CCLayerTreeHostTestScrollSimple, DISABLED_runMultiThread) 918 917 { 919 runTest Threaded();920 } 921 922 class CCLayerTreeHostTestScrollMultipleRedraw : public CCLayerTreeHostTest ThreadOnly{918 runTest(true); 919 } 920 921 class CCLayerTreeHostTestScrollMultipleRedraw : public CCLayerTreeHostTest { 923 922 public: 924 923 CCLayerTreeHostTestScrollMultipleRedraw() … … 997 996 TEST_F(CCLayerTreeHostTestScrollMultipleRedraw, DISABLED_runMultiThread) 998 997 { 999 runTest Threaded();998 runTest(true); 1000 999 } 1001 1000 … … 1967 1966 1968 1967 // A loseContext(1) should lead to a didRecreateContext(true) 1969 class CCLayerTreeHostTestSetSingleLostContext : public CCLayerTreeHostTest ThreadOnly{1968 class CCLayerTreeHostTestSetSingleLostContext : public CCLayerTreeHostTest { 1970 1969 public: 1971 1970 CCLayerTreeHostTestSetSingleLostContext() … … 1996 1995 TEST_F(CCLayerTreeHostTestSetSingleLostContext, runMultiThread) 1997 1996 { 1998 runTest Threaded();1997 runTest(true); 1999 1998 } 2000 1999 2001 2000 // A loseContext(10) should lead to a didRecreateContext(false), and 2002 2001 // a finishAllRendering() should not hang. 2003 class CCLayerTreeHostTestSetRepeatedLostContext : public CCLayerTreeHostTest ThreadOnly{2002 class CCLayerTreeHostTestSetRepeatedLostContext : public CCLayerTreeHostTest { 2004 2003 public: 2005 2004 CCLayerTreeHostTestSetRepeatedLostContext() … … 2031 2030 TEST_F(CCLayerTreeHostTestSetRepeatedLostContext, runMultiThread) 2032 2031 { 2033 runTest Threaded();2034 } 2035 2036 class CCLayerTreeHostTestFractionalScroll : public CCLayerTreeHostTest ThreadOnly{2032 runTest(true); 2033 } 2034 2035 class CCLayerTreeHostTestFractionalScroll : public CCLayerTreeHostTest { 2037 2036 public: 2038 2037 CCLayerTreeHostTestFractionalScroll() … … 2084 2083 TEST_F(CCLayerTreeHostTestFractionalScroll, runMultiThread) 2085 2084 { 2086 runTest Threaded();2085 runTest(true); 2087 2086 } 2088 2087
Note: See TracChangeset
for help on using the changeset viewer.