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

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

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem 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/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 5a77d02ad6eb1a2d5b90f84f34a7a28da811e4da..93b25e7c4dda99688a017aba2e5abb3259374133 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintControllerTest.cpp
@@ -798,11 +798,11 @@ TEST_P(PaintControllerTest, CachedDisplayItems) {
TestDisplayItem(second, backgroundDrawingType));
EXPECT_TRUE(getPaintController().clientCacheIsValid(first));
EXPECT_TRUE(getPaintController().clientCacheIsValid(second));
- const SkPicture* firstPicture =
+ const PaintRecord* firstPicture =
static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[0])
.picture();
- const SkPicture* secondPicture =
+ const PaintRecord* secondPicture =
static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[1])
.picture();
@@ -1590,11 +1590,11 @@ TEST_P(PaintControllerTest, SkipCache) {
TestDisplayItem(multicol, backgroundDrawingType),
TestDisplayItem(content, foregroundDrawingType),
TestDisplayItem(content, foregroundDrawingType));
- sk_sp<const SkPicture> picture1 =
+ sk_sp<const PaintRecord> picture1 =
sk_ref_sp(static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[1])
.picture());
- sk_sp<const SkPicture> picture2 =
+ sk_sp<const PaintRecord> picture2 =
sk_ref_sp(static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[2])
.picture());
@@ -1713,15 +1713,15 @@ TEST_P(PaintControllerTest, PartialSkipCache) {
TestDisplayItem(content, backgroundDrawingType),
TestDisplayItem(content, foregroundDrawingType),
TestDisplayItem(content, foregroundDrawingType));
- sk_sp<const SkPicture> picture0 =
+ sk_sp<const PaintRecord> picture0 =
sk_ref_sp(static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[0])
.picture());
- sk_sp<const SkPicture> picture1 =
+ sk_sp<const PaintRecord> picture1 =
sk_ref_sp(static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[1])
.picture());
- sk_sp<const SkPicture> picture2 =
+ sk_sp<const PaintRecord> picture2 =
sk_ref_sp(static_cast<const DrawingDisplayItem&>(
getPaintController().getDisplayItemList()[2])
.picture());
@@ -1864,7 +1864,7 @@ void drawPath(GraphicsContext& context,
path.lineTo(100, 100);
path.lineTo(100, 0);
path.close();
- SkPaint paint;
+ PaintFlags paint;
paint.setAntiAlias(true);
for (unsigned i = 0; i < count; i++)
context.drawPath(path, paint);

Powered by Google App Engine
This is Rietveld 408576698