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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp

Issue 2615773003: Replace LayerImpl::sorting_context_id with transform reference. (Closed)
Patch Set: Update tests. Created 3 years, 11 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
Index: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
index 6dcdc91f44a3fa051e6c6305458e63af2fec0691..da7f176c635bffc077ea634a1f69752921de5cea 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp
@@ -355,7 +355,6 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, SortingContextID) {
Pointee(drawsRectangle(FloatRect(0, 0, 300, 200), Color::lightGray)));
int lightGraySortingContextId =
transformNode(lightGrayLayer).sorting_context_id;
- EXPECT_EQ(lightGrayLayer->sorting_context_id(), lightGraySortingContextId);
EXPECT_NE(0, lightGraySortingContextId);
// The dark gray layer is 3D sorted with the light gray layer, but has a
@@ -366,7 +365,6 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, SortingContextID) {
Pointee(drawsRectangle(FloatRect(0, 0, 300, 200), Color::darkGray)));
int darkGraySortingContextId =
transformNode(darkGrayLayer).sorting_context_id;
- EXPECT_EQ(darkGrayLayer->sorting_context_id(), darkGraySortingContextId);
EXPECT_EQ(lightGraySortingContextId, darkGraySortingContextId);
EXPECT_NE(lightGrayLayer->transform_tree_index(),
darkGrayLayer->transform_tree_index());
@@ -377,7 +375,6 @@ TEST_F(PaintArtifactCompositorTestWithPropertyTrees, SortingContextID) {
EXPECT_THAT(blackLayer->GetPicture(),
Pointee(drawsRectangle(FloatRect(0, 0, 300, 200), Color::black)));
int blackSortingContextId = transformNode(blackLayer).sorting_context_id;
- EXPECT_EQ(blackLayer->sorting_context_id(), blackSortingContextId);
EXPECT_NE(0, blackSortingContextId);
EXPECT_NE(lightGraySortingContextId, blackSortingContextId);
}

Powered by Google App Engine
This is Rietveld 408576698