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

Side by Side Diff: cc/CCOcclusionTrackerTest.cpp

Issue 10967018: Reenable CCOcclusionTrackerTestViewportRectOverChild test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "CCOcclusionTracker.h" 7 #include "CCOcclusionTracker.h"
8 8
9 #include "CCAnimationTestCommon.h" 9 #include "CCAnimationTestCommon.h"
10 #include "CCGeometryTestUtils.h" 10 #include "CCGeometryTestUtils.h"
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 EXPECT_TRUE(occlusion.occluded(parent, IntRect(200, 100, 100, 100))); 1476 EXPECT_TRUE(occlusion.occluded(parent, IntRect(200, 100, 100, 100)));
1477 EXPECT_TRUE(occlusion.occluded(parent, IntRect(200, 0, 100, 100))); 1477 EXPECT_TRUE(occlusion.occluded(parent, IntRect(200, 0, 100, 100)));
1478 EXPECT_TRUE(occlusion.occluded(parent, IntRect(0, 200, 100, 100))); 1478 EXPECT_TRUE(occlusion.occluded(parent, IntRect(0, 200, 100, 100)));
1479 EXPECT_TRUE(occlusion.occluded(parent, IntRect(100, 200, 100, 100))); 1479 EXPECT_TRUE(occlusion.occluded(parent, IntRect(100, 200, 100, 100)));
1480 EXPECT_TRUE(occlusion.occluded(parent, IntRect(200, 200, 100, 100))); 1480 EXPECT_TRUE(occlusion.occluded(parent, IntRect(200, 200, 100, 100)));
1481 1481
1482 EXPECT_TRUE(occlusion.unoccludedContentRect(parent, IntRect(0, 0, 300, 3 00)).isEmpty()); 1482 EXPECT_TRUE(occlusion.unoccludedContentRect(parent, IntRect(0, 0, 300, 3 00)).isEmpty());
1483 } 1483 }
1484 }; 1484 };
1485 1485
1486 // Test is flaky on xp bots. http://crbug.com/148906. 1486 ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestViewportRectOverChild);
1487 // ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestViewportRectOverChild);
1488 1487
1489 template<class Types, bool opaqueLayers> 1488 template<class Types, bool opaqueLayers>
1490 class CCOcclusionTrackerTestLayerClipRectPartlyOverChild : public CCOcclusionTra ckerTest<Types, opaqueLayers> { 1489 class CCOcclusionTrackerTestLayerClipRectPartlyOverChild : public CCOcclusionTra ckerTest<Types, opaqueLayers> {
1491 protected: 1490 protected:
1492 void runMyTest() 1491 void runMyTest()
1493 { 1492 {
1494 typename Types::ContentLayerType* parent = this->createRoot(this->identi tyMatrix, FloatPoint(0, 0), IntSize(300, 300)); 1493 typename Types::ContentLayerType* parent = this->createRoot(this->identi tyMatrix, FloatPoint(0, 0), IntSize(300, 300));
1495 typename Types::ContentLayerType* layer = this->createDrawingSurface(par ent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true); 1494 typename Types::ContentLayerType* layer = this->createDrawingSurface(par ent, this->identityMatrix, FloatPoint(0, 0), IntSize(200, 200), true);
1496 this->calcDrawEtc(parent); 1495 this->calcDrawEtc(parent);
1497 1496
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
3007 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInS creenSpace().bounds()); 3006 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInS creenSpace().bounds());
3008 EXPECT_EQ(1u, occlusion.occlusionInScreenSpace().rects().size()); 3007 EXPECT_EQ(1u, occlusion.occlusionInScreenSpace().rects().size());
3009 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInT argetSurface().bounds()); 3008 EXPECT_RECT_EQ(IntRect(IntPoint(), trackingSize), occlusion.occlusionInT argetSurface().bounds());
3010 EXPECT_EQ(1u, occlusion.occlusionInTargetSurface().rects().size()); 3009 EXPECT_EQ(1u, occlusion.occlusionInTargetSurface().rects().size());
3011 } 3010 }
3012 }; 3011 };
3013 3012
3014 ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestMinimumTrackingSize); 3013 ALL_CCOCCLUSIONTRACKER_TEST(CCOcclusionTrackerTestMinimumTrackingSize);
3015 3014
3016 } // namespace 3015 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698