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

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

Issue 1355713004: Drop virtual LightSource::create (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/platform/graphics/filters/PointLightSource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/SpotLightSource.h
diff --git a/Source/platform/graphics/filters/SpotLightSource.h b/Source/platform/graphics/filters/SpotLightSource.h
index 636c906e823848717fc5e9e701f0bfe1e47e9f4e..4c5803cef714cf6d4a6d5d088561ca74e7bf4992 100644
--- a/Source/platform/graphics/filters/SpotLightSource.h
+++ b/Source/platform/graphics/filters/SpotLightSource.h
@@ -36,13 +36,6 @@ public:
return adoptRef(new SpotLightSource(position, direction, specularExponent, limitingConeAngle));
}
- PassRefPtr<LightSource> create(const FloatPoint3D& scale, const FloatSize& offset) const override
- {
- FloatPoint3D position(m_position.x() * scale.x() - offset.width(), m_position.y() * scale.y() - offset.height(), m_position.z() * scale.z());
- FloatPoint3D direction(m_direction.x() * scale.x() - offset.width(), m_direction.y() * scale.y() - offset.height(), m_direction.z() * scale.z());
- return adoptRef(new SpotLightSource(position, direction, m_specularExponent, m_limitingConeAngle));
- }
-
const FloatPoint3D& position() const { return m_position; }
const FloatPoint3D& direction() const { return m_direction; }
float specularExponent() const { return m_specularExponent; }
« no previous file with comments | « Source/platform/graphics/filters/PointLightSource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698