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

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

Issue 951523002: Remove PaintingData from LightSource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 30058e42f97290ce61b127a54431a2cae37f104e..33792d3b358cf43481a823a4f4692ae710f7d9d6 100644
--- a/Source/platform/graphics/filters/DistantLightSource.cpp
+++ b/Source/platform/graphics/filters/DistantLightSource.cpp
@@ -35,20 +35,6 @@
namespace blink {
-void DistantLightSource::initPaintingData(PaintingData& paintingData) const
-{
- float azimuth = deg2rad(m_azimuth);
- float elevation = deg2rad(m_elevation);
- paintingData.lightVector.setX(cosf(azimuth) * cosf(elevation));
- paintingData.lightVector.setY(sinf(azimuth) * cosf(elevation));
- paintingData.lightVector.setZ(sinf(elevation));
- paintingData.lightVectorLength = 1;
-}
-
-void DistantLightSource::updatePaintingData(PaintingData&, int, int, float) const
-{
-}
-
bool DistantLightSource::setAzimuth(float azimuth)
{
if (m_azimuth == azimuth)
« no previous file with comments | « Source/platform/graphics/filters/DistantLightSource.h ('k') | Source/platform/graphics/filters/LightSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698