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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.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/LayoutSVGResourceMasker.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.h
index bbc5e9ed13adb9450ea3bf008a30116115415f6a..5c349a98e826a57365152e759a30009667b322a2 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMasker.h
@@ -50,6 +50,8 @@ public:
static const LayoutSVGResourceType s_resourceType = MaskerResourceType;
LayoutSVGResourceType resourceType() const override { return s_resourceType; }
+ // Returns a picture to paint the contents of the mask, or nullptr if the picture couldn't be created.
+ // Pictures should only fail creation in certain testing situations.
PassRefPtr<const SkPicture> createContentPicture(AffineTransform&, const FloatRect&, GraphicsContext&);
private:

Powered by Google App Engine
This is Rietveld 408576698