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

Unified Diff: skia/ext/analysis_canvas_unittest.cc

Issue 1066273002: Use SkPictureRecorder::endRecordingAsPicture() instead of endRecording() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « printing/pdf_metafile_skia.cc ('k') | skia/ext/pixel_ref_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/analysis_canvas_unittest.cc
diff --git a/skia/ext/analysis_canvas_unittest.cc b/skia/ext/analysis_canvas_unittest.cc
index 8263075be0fd62b2d67006a3ff8ffe1d330a28f3..db8e7a2512fad0d488eae09dc22828884066f142 100644
--- a/skia/ext/analysis_canvas_unittest.cc
+++ b/skia/ext/analysis_canvas_unittest.cc
@@ -183,7 +183,8 @@ TEST(AnalysisCanvasTest, FilterPaint) {
skia::AnalysisCanvas canvas(255, 255);
SkPaint paint;
- skia::RefPtr<SkImageFilter> filter = skia::AdoptRef(SkOffsetImageFilter::Create(10, 10));
+ skia::RefPtr<SkImageFilter> filter =
+ skia::AdoptRef(SkOffsetImageFilter::Create(10, 10));
paint.setImageFilter(filter.get());
canvas.drawRect(SkRect::MakeWH(255, 255), paint);
@@ -344,7 +345,8 @@ TEST(AnalysisCanvasTest, EarlyOutNotSolid) {
record_canvas->drawText(
text.c_str(), text.length(), point.fX, point.fY, paint);
- skia::RefPtr<SkPicture> picture = skia::AdoptRef(recorder.endRecording());
+ skia::RefPtr<SkPicture> picture =
+ skia::AdoptRef(recorder.endRecordingAsPicture());
// Draw the picture into the analysis canvas, using the canvas as a callback
// as well.
@@ -357,7 +359,6 @@ TEST(AnalysisCanvasTest, EarlyOutNotSolid) {
// Verify that we aborted drawing.
EXPECT_TRUE(canvas.abortDrawing());
-
}
TEST(AnalysisCanvasTest, ClipComplexRegion) {
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | skia/ext/pixel_ref_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698