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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h

Issue 2582383002: Clamp background tiles when possible (Closed)
Patch Set: relax asserts Created 4 years 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/SVGImageForContainer.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h b/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
index 61d4e729107f52ef81f00c76172421fe82ac03da..6df60d1ea3421c68ffe09c8cb0bcc5e4ce21f94e 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h
@@ -84,6 +84,14 @@ class SVGImageForContainer final : public Image {
ImageClampingMode,
const ColorBehavior&) override;
+ // FIXME: Implement this to be less conservative.
+ bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override {
+ return false;
+ }
+
+ sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override;
+
+ protected:
void drawPattern(GraphicsContext&,
const FloatRect&,
const FloatSize&,
@@ -92,13 +100,6 @@ class SVGImageForContainer final : public Image {
const FloatRect&,
const FloatSize& repeatSpacing) override;
- // FIXME: Implement this to be less conservative.
- bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override {
- return false;
- }
-
- sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override;
-
private:
SVGImageForContainer(SVGImage* image,
const FloatSize& containerSize,

Powered by Google App Engine
This is Rietveld 408576698