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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h

Issue 1841833002: Deal gracefully with null {GraphicsContext,SkPictureBuilder}.endRecording() results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't end recording twice in DrawingRecorder. 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/core/layout/svg/LayoutSVGResourcePattern.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h
index b59ad373a2b4de6e72b1dce2bebb5e9dd7695ca2..bc504919a6d9ed1238744676a97905bbd3aa5e4a 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h
@@ -54,6 +54,8 @@ public:
private:
PassOwnPtr<PatternData> buildPatternData(const LayoutObject&);
+ // Returns a picture to paint the pattern, or nullptr if the picture couldn't be created.
+ // Pictures should only fail creation in certain testing situations.
PassRefPtr<SkPicture> asPicture(const FloatRect& tile, const AffineTransform&) const;
PatternData* patternForLayoutObject(const LayoutObject&);

Powered by Google App Engine
This is Rietveld 408576698