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

Unified Diff: Source/platform/graphics/GeneratedImage.cpp

Issue 1160183003: Use SkPictureBuilder in SVGShapePainter, and generalize SkPictureBuilder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/platform/graphics/GeneratedImage.cpp
diff --git a/Source/platform/graphics/GeneratedImage.cpp b/Source/platform/graphics/GeneratedImage.cpp
index 093e249d13cd434e1539f102f8dec44f4341dfd0..27b889be0348027bd0a13250f007cafbc98c4868 100644
--- a/Source/platform/graphics/GeneratedImage.cpp
+++ b/Source/platform/graphics/GeneratedImage.cpp
@@ -51,7 +51,7 @@ void GeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect&
FloatRect tileRect = srcRect;
tileRect.expand(repeatSpacing);
- SkPictureBuilder builder(tileRect);
+ SkPictureBuilder builder(tileRect, nullptr, destContext);
if (RuntimeEnabledFeatures::slimmingPaintEnabled())
builder.context().beginRecording(tileRect);
drawTile(&builder.context(), srcRect);
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/paint/DisplayItemListContextRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698