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

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

Issue 1354923003: Remove kernelUnitLength plumbing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More TEs 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) 2010 University of Szeged 2 * Copyright (C) 2010 University of Szeged
3 * Copyright (C) 2010 Zoltan Herczeg 3 * Copyright (C) 2010 Zoltan Herczeg
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 protected: 44 protected:
45 enum LightingType { 45 enum LightingType {
46 DiffuseLighting, 46 DiffuseLighting,
47 SpecularLighting 47 SpecularLighting
48 }; 48 };
49 49
50 FloatRect mapPaintRect(const FloatRect&, bool forward = true) final; 50 FloatRect mapPaintRect(const FloatRect&, bool forward = true) final;
51 bool affectsTransparentPixels() override { return true; } 51 bool affectsTransparentPixels() override { return true; }
52 52
53 FELighting(Filter*, LightingType, const Color&, float, float, float, float, float, float, PassRefPtr<LightSource>); 53 FELighting(Filter*, LightingType, const Color&, float, float, float, float, PassRefPtr<LightSource>);
54 54
55 LightingType m_lightingType; 55 LightingType m_lightingType;
56 RefPtr<LightSource> m_lightSource; 56 RefPtr<LightSource> m_lightSource;
57 57
58 Color m_lightingColor; 58 Color m_lightingColor;
59 float m_surfaceScale; 59 float m_surfaceScale;
60 float m_diffuseConstant; 60 float m_diffuseConstant;
61 float m_specularConstant; 61 float m_specularConstant;
62 float m_specularExponent; 62 float m_specularExponent;
63 float m_kernelUnitLengthX;
64 float m_kernelUnitLengthY;
65 }; 63 };
66 64
67 } // namespace blink 65 } // namespace blink
68 66
69 #endif // FELighting_h 67 #endif // FELighting_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEDiffuseLighting.cpp ('k') | Source/platform/graphics/filters/FELighting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698