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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp

Issue 2768143002: Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: Rebase, move slow path counting Created 3 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/core/svg/graphics/SVGImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
index 9b97da95c461617574f213b068782412b760826c..cbeff8f6729d413769ee4b2356d6c96602541686 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
@@ -370,10 +370,10 @@ bool SVGImage::applyShaderInternal(PaintFlags& flags,
return false;
const FloatRect bounds(FloatPoint(), size);
- flags.setShader(SkShader::MakePictureShader(
- paintRecordForCurrentFrame(bounds, bounds, url),
- SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix,
- nullptr));
+ flags.setShader(
+ MakePaintShaderRecord(paintRecordForCurrentFrame(bounds, bounds, url),
+ SkShader::kRepeat_TileMode,
+ SkShader::kRepeat_TileMode, &localMatrix, nullptr));
// Animation is normally refreshed in draw() impls, which we don't reach when
// painting via shaders.

Powered by Google App Engine
This is Rietveld 408576698