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

Unified Diff: Source/platform/graphics/filters/LightSource.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/LightSource.h
diff --git a/Source/platform/graphics/filters/LightSource.h b/Source/platform/graphics/filters/LightSource.h
index 255f66935b1b6aa28395494c9a2e1e2872a7b1bd..4c7d412a862642649fb9144f5d043dabcca449b9 100644
--- a/Source/platform/graphics/filters/LightSource.h
+++ b/Source/platform/graphics/filters/LightSource.h
@@ -69,10 +69,12 @@ public:
LightType type() const { return m_type; }
virtual TextStream& externalRepresentation(TextStream&) const = 0;
- virtual void initPaintingData(PaintingData&) = 0;
+ virtual PassRefPtr<LightSource> create(const FloatPoint3D& scale, const FloatSize& offset) const = 0;
+
+ virtual void initPaintingData(PaintingData&) const = 0;
// z is a float number, since it is the alpha value scaled by a user
// specified "surfaceScale" constant, which type is <number> in the SVG standard
- virtual void updatePaintingData(PaintingData&, int x, int y, float z) = 0;
+ virtual void updatePaintingData(PaintingData&, int x, int y, float z) const = 0;
virtual bool setAzimuth(float) { return false; }
virtual bool setElevation(float) { return false; }
« no previous file with comments | « Source/platform/graphics/filters/FELighting.cpp ('k') | Source/platform/graphics/filters/PointLightSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698