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

Unified Diff: Source/platform/graphics/filters/FELighting.h

Issue 181943003: Scaling and offset fix for FELighting (software and skia paths) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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: Source/platform/graphics/filters/FELighting.h
diff --git a/Source/platform/graphics/filters/FELighting.h b/Source/platform/graphics/filters/FELighting.h
index a50f5a77b40d2d1ea8a73bf6cabbbfe35b472fb8..dbe81e9aab255b44e3e6855bbd58d15b3df18010 100644
--- a/Source/platform/graphics/filters/FELighting.h
+++ b/Source/platform/graphics/filters/FELighting.h
@@ -61,6 +61,8 @@ protected:
int widthMultipliedByPixelSize;
int widthDecreasedByOne;
int heightDecreasedByOne;
+ FloatSize originOffset;
+ FloatPoint3D worldScale;
inline void topLeft(int offset, IntPoint& normalVector);
inline void topRow(int offset, IntPoint& normalVector);
@@ -122,6 +124,8 @@ protected:
private:
virtual void applySoftware() OVERRIDE;
virtual bool applySkia() OVERRIDE;
+
+ void getTransform(FloatSize* offset, FloatPoint3D* scale) const;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698