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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp

Issue 2812103002: Don't allow the composited-alpha folding optimization to cross subsequences (Closed)
Patch Set: none Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp
index a5c53a9cbd6060ade4ca58f9ce8e4a12426d1bc0..4db99ab772c9aa9b97195674bcec78cbd4dced3f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp
@@ -2113,6 +2113,8 @@ class PaintControllerUnderInvalidationTest
}
void TestNoopPairsInSubsequence() {
+ EXPECT_FALSE(GetPaintController().LastDisplayItemIsSubsequenceEnd());
+
FakeDisplayItemClient container("container");
GraphicsContext context(GetPaintController());
@@ -2140,6 +2142,8 @@ class PaintControllerUnderInvalidationTest
DrawRect(context, container, kBackgroundDrawingType,
FloatRect(100, 100, 100, 100));
}
+ EXPECT_TRUE(GetPaintController().LastDisplayItemIsSubsequenceEnd());
+
GetPaintController().CommitNewDisplayItems();
#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698