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

Side by Side Diff: Source/platform/graphics/filters/LightSource.h

Issue 395813002: Resolve light-source position/direction when updated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com>
3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org> 6 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 virtual PassRefPtr<LightSource> create(const FloatPoint3D& scale, const Floa tSize& offset) const = 0; 71 virtual PassRefPtr<LightSource> create(const FloatPoint3D& scale, const Floa tSize& offset) const = 0;
72 72
73 virtual void initPaintingData(PaintingData&) const = 0; 73 virtual void initPaintingData(PaintingData&) const = 0;
74 // z is a float number, since it is the alpha value scaled by a user 74 // z is a float number, since it is the alpha value scaled by a user
75 // specified "surfaceScale" constant, which type is <number> in the SVG stan dard 75 // specified "surfaceScale" constant, which type is <number> in the SVG stan dard
76 virtual void updatePaintingData(PaintingData&, int x, int y, float z) const = 0; 76 virtual void updatePaintingData(PaintingData&, int x, int y, float z) const = 0;
77 77
78 virtual bool setAzimuth(float) { return false; } 78 virtual bool setAzimuth(float) { return false; }
79 virtual bool setElevation(float) { return false; } 79 virtual bool setElevation(float) { return false; }
80 virtual bool setX(float) { return false; } 80 virtual bool setPosition(const FloatPoint3D&) { return false; }
81 virtual bool setY(float) { return false; } 81 virtual bool setPointsAt(const FloatPoint3D&) { return false; }
82 virtual bool setZ(float) { return false; }
83 virtual bool setPointsAtX(float) { return false; }
84 virtual bool setPointsAtY(float) { return false; }
85 virtual bool setPointsAtZ(float) { return false; }
86 virtual bool setSpecularExponent(float) { return false; } 82 virtual bool setSpecularExponent(float) { return false; }
87 virtual bool setLimitingConeAngle(float) { return false; } 83 virtual bool setLimitingConeAngle(float) { return false; }
88 84
89 private: 85 private:
90 LightType m_type; 86 LightType m_type;
91 }; 87 };
92 88
93 } // namespace WebCore 89 } // namespace WebCore
94 90
95 #endif // LightSource_h 91 #endif // LightSource_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFESpotLightElement.cpp ('k') | Source/platform/graphics/filters/PointLightSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698