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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 friend class ParallelJobs; | 76 friend class ParallelJobs; |
77 | 77 |
78 struct PlatformApplyGenericParameters { | 78 struct PlatformApplyGenericParameters { |
79 FELighting* filter; | 79 FELighting* filter; |
80 LightingData data; | 80 LightingData data; |
81 LightSource::PaintingData paintingData; | 81 LightSource::PaintingData paintingData; |
82 int yStart; | 82 int yStart; |
83 int yEnd; | 83 int yEnd; |
84 }; | 84 }; |
85 | 85 |
86 virtual FloatRect mapPaintRect(const FloatRect&, bool forward = true) overri
de FINAL; | 86 virtual FloatRect mapPaintRect(const FloatRect&, bool forward = true) overri
de final; |
87 virtual bool affectsTransparentPixels() override { return true; } | 87 virtual bool affectsTransparentPixels() override { return true; } |
88 | 88 |
89 static void platformApplyGenericWorker(PlatformApplyGenericParameters*); | 89 static void platformApplyGenericWorker(PlatformApplyGenericParameters*); |
90 | 90 |
91 FELighting(Filter*, LightingType, const Color&, float, float, float, float,
float, float, PassRefPtr<LightSource>); | 91 FELighting(Filter*, LightingType, const Color&, float, float, float, float,
float, float, PassRefPtr<LightSource>); |
92 | 92 |
93 bool drawLighting(Uint8ClampedArray*, int, int); | 93 bool drawLighting(Uint8ClampedArray*, int, int); |
94 inline void inlineSetPixel(int offset, LightingData&, LightSource::PaintingD
ata&, | 94 inline void inlineSetPixel(int offset, LightingData&, LightSource::PaintingD
ata&, |
95 int lightX, int lightY, float factorX, float fact
orY, IntPoint& normalVector); | 95 int lightX, int lightY, float factorX, float fact
orY, IntPoint& normalVector); |
96 | 96 |
(...skipping 19 matching lines...) Expand all Loading... |
116 | 116 |
117 private: | 117 private: |
118 virtual void applySoftware() override; | 118 virtual void applySoftware() override; |
119 | 119 |
120 void getTransform(FloatPoint3D* scale, FloatSize* offset) const; | 120 void getTransform(FloatPoint3D* scale, FloatSize* offset) const; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace blink | 123 } // namespace blink |
124 | 124 |
125 #endif // FELighting_h | 125 #endif // FELighting_h |
OLD | NEW |