OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "platform/graphics/paint/PaintController.h" | 5 #include "platform/graphics/paint/PaintController.h" |
6 | 6 |
7 #include "platform/RuntimeEnabledFeatures.h" | 7 #include "platform/RuntimeEnabledFeatures.h" |
8 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
9 #include "platform/graphics/paint/ClipPathDisplayItem.h" | 9 #include "platform/graphics/paint/ClipPathDisplayItem.h" |
10 #include "platform/graphics/paint/ClipPathRecorder.h" | 10 #include "platform/graphics/paint/ClipPathRecorder.h" |
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1696 } | 1696 } |
1697 }; | 1697 }; |
1698 | 1698 |
1699 TEST_F(PaintControllerUnderInvalidationTest, ChangeDrawing) | 1699 TEST_F(PaintControllerUnderInvalidationTest, ChangeDrawing) |
1700 { | 1700 { |
1701 EXPECT_DEATH(testChangeDrawing(), "under-invalidation: display item changed"
); | 1701 EXPECT_DEATH(testChangeDrawing(), "under-invalidation: display item changed"
); |
1702 } | 1702 } |
1703 | 1703 |
1704 TEST_F(PaintControllerUnderInvalidationTest, MoreDrawing) | 1704 TEST_F(PaintControllerUnderInvalidationTest, MoreDrawing) |
1705 { | 1705 { |
1706 EXPECT_DEATH(testMoreDrawing(), "Can't find cached display item"); | 1706 EXPECT_DEATH(testMoreDrawing(), ""); |
1707 } | 1707 } |
1708 | 1708 |
1709 TEST_F(PaintControllerUnderInvalidationTest, LessDrawing) | 1709 TEST_F(PaintControllerUnderInvalidationTest, LessDrawing) |
1710 { | 1710 { |
1711 // We don't detect under-invalidation in this case, and PaintController can
also handle the case gracefully. | 1711 // We don't detect under-invalidation in this case, and PaintController can
also handle the case gracefully. |
1712 // However, less-drawing at a time often means more-drawing at another time
so eventually we'll detect | 1712 // However, less-drawing at a time often means more-drawing at another time
so eventually we'll detect |
1713 // such under-invalidations. | 1713 // such under-invalidations. |
1714 testLessDrawing(); | 1714 testLessDrawing(); |
1715 } | 1715 } |
1716 | 1716 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1748 } | 1748 } |
1749 | 1749 |
1750 TEST_F(PaintControllerUnderInvalidationTest, FoldCompositingDrawingInSubsequence
) | 1750 TEST_F(PaintControllerUnderInvalidationTest, FoldCompositingDrawingInSubsequence
) |
1751 { | 1751 { |
1752 testFoldCompositingDrawingInSubsequence(); | 1752 testFoldCompositingDrawingInSubsequence(); |
1753 } | 1753 } |
1754 | 1754 |
1755 #endif // defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) | 1755 #endif // defined(GTEST_HAS_DEATH_TEST) && !OS(ANDROID) |
1756 | 1756 |
1757 } // namespace blink | 1757 } // namespace blink |
OLD | NEW |