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

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: Changed fix to temporary light creation 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..276bc6126dccacc27c9c78371ab87de690ea74a8 100644
--- a/Source/platform/graphics/filters/FELighting.h
+++ b/Source/platform/graphics/filters/FELighting.h
@@ -61,6 +61,7 @@ protected:
int widthMultipliedByPixelSize;
int widthDecreasedByOne;
int heightDecreasedByOne;
+ const LightSource* lightSource;
inline void topLeft(int offset, IntPoint& normalVector);
inline void topRow(int offset, IntPoint& normalVector);
@@ -122,6 +123,8 @@ protected:
private:
virtual void applySoftware() OVERRIDE;
virtual bool applySkia() OVERRIDE;
+
+ void getTransform(FloatPoint3D* scale, FloatSize* offset) const;
};
} // namespace WebCore
« no previous file with comments | « Source/platform/graphics/filters/DistantLightSource.cpp ('k') | Source/platform/graphics/filters/FELighting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698