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

Unified Diff: Source/platform/graphics/filters/DistantLightSource.cpp

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/DistantLightSource.cpp
diff --git a/Source/platform/graphics/filters/DistantLightSource.cpp b/Source/platform/graphics/filters/DistantLightSource.cpp
index 6da197cbb895d59722e6e7f046d93579b9006855..b44c393ab9bb027889c685cc87c0eb9607c2d7fc 100644
--- a/Source/platform/graphics/filters/DistantLightSource.cpp
+++ b/Source/platform/graphics/filters/DistantLightSource.cpp
@@ -35,7 +35,7 @@
namespace WebCore {
-void DistantLightSource::initPaintingData(PaintingData& paintingData)
+void DistantLightSource::initPaintingData(PaintingData& paintingData) const
{
float azimuth = deg2rad(m_azimuth);
float elevation = deg2rad(m_elevation);
@@ -45,7 +45,7 @@ void DistantLightSource::initPaintingData(PaintingData& paintingData)
paintingData.lightVectorLength = 1;
}
-void DistantLightSource::updatePaintingData(PaintingData&, int, int, float)
+void DistantLightSource::updatePaintingData(PaintingData&, int, int, float) const
{
}
« no previous file with comments | « Source/platform/graphics/filters/DistantLightSource.h ('k') | Source/platform/graphics/filters/FELighting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698