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

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

Issue 1823133002: Use sk_sp-based picture recording APIs in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 9 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/DisplayItemListTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemListTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemListTest.cpp
index e859f802d90c81e4ed37c0b07cb0943fff9ecb6e..4ca1bfe1244a02fa0151e79d2cdba1c38c1cd734 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemListTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemListTest.cpp
@@ -9,6 +9,7 @@
#include "platform/graphics/paint/DrawingDisplayItem.h"
#include "platform/graphics/paint/SubsequenceDisplayItem.h"
#include "platform/graphics/paint/TransformDisplayItem.h"
+#include "platform/graphics/skia/SkiaUtils.h"
#include "platform/transforms/AffineTransform.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -47,7 +48,7 @@ static PassRefPtr<SkPicture> createRectPicture(const IntRect& bounds)
SkCanvas* canvas = recorder.beginRecording(bounds.width(), bounds.height());
canvas->drawRect(SkRect::MakeXYWH(bounds.x(), bounds.y(), bounds.width(), bounds.height()),
SkPaint());
- return adoptRef(recorder.endRecordingAsPicture());
+ return fromSkSp(recorder.finishRecordingAsPicture());
}
TEST_F(DisplayItemListTest, AppendVisualRect_Simple)

Powered by Google App Engine
This is Rietveld 408576698