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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.h

Issue 2582383002: Clamp background tiles when possible (Closed)
Patch Set: rebaseline 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/platform/graphics/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index e238844dd926b948be7cfb0f1b95c46a56a75cb8..28cbb409743cd25075a2c5621a7a019423224978 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -156,14 +156,6 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
virtual sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) = 0;
virtual PassRefPtr<Image> imageForDefaultFrame();
- virtual void drawPattern(GraphicsContext&,
- const FloatRect&,
- const FloatSize&,
- const FloatPoint& phase,
- SkBlendMode,
- const FloatRect&,
- const FloatSize& repeatSpacing = FloatSize());
-
enum ImageClampingMode {
ClampImageToSourceRect,
DoNotClampImageToSourceRect
@@ -213,6 +205,14 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
TileRule vRule,
SkBlendMode);
+ virtual void drawPattern(GraphicsContext&,
+ const FloatRect&,
+ const FloatSize&,
+ const FloatPoint& phase,
+ SkBlendMode,
+ const FloatRect&,
+ const FloatSize& repeatSpacing = FloatSize());
+
private:
RefPtr<SharedBuffer> m_encodedImageData;
// TODO(Oilpan): consider having Image on the Oilpan heap and

Powered by Google App Engine
This is Rietveld 408576698