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

Side by Side Diff: Source/platform/graphics/filters/LightSource.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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 LightSource(LightType type) 44 LightSource(LightType type)
45 : m_type(type) 45 : m_type(type)
46 { } 46 { }
47 47
48 virtual ~LightSource(); 48 virtual ~LightSource();
49 49
50 LightType type() const { return m_type; } 50 LightType type() const { return m_type; }
51 virtual TextStream& externalRepresentation(TextStream&) const = 0; 51 virtual TextStream& externalRepresentation(TextStream&) const = 0;
52 52
53 virtual PassRefPtr<LightSource> create(const FloatPoint3D& scale, const Floa tSize& offset) const = 0;
54
55 virtual bool setAzimuth(float) { return false; } 53 virtual bool setAzimuth(float) { return false; }
56 virtual bool setElevation(float) { return false; } 54 virtual bool setElevation(float) { return false; }
57 virtual bool setPosition(const FloatPoint3D&) { return false; } 55 virtual bool setPosition(const FloatPoint3D&) { return false; }
58 virtual bool setPointsAt(const FloatPoint3D&) { return false; } 56 virtual bool setPointsAt(const FloatPoint3D&) { return false; }
59 virtual bool setSpecularExponent(float) { return false; } 57 virtual bool setSpecularExponent(float) { return false; }
60 virtual bool setLimitingConeAngle(float) { return false; } 58 virtual bool setLimitingConeAngle(float) { return false; }
61 59
62 private: 60 private:
63 LightType m_type; 61 LightType m_type;
64 }; 62 };
65 63
66 } // namespace blink 64 } // namespace blink
67 65
68 #endif // LightSource_h 66 #endif // LightSource_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/DistantLightSource.h ('k') | Source/platform/graphics/filters/PointLightSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698