OLD | NEW |
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 Loading... |
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 |
OLD | NEW |