Jim Van Verth | 2103cf0 | 2017-01-16 13:03:37 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef SkShadowFlags_DEFINED |
| 9 | #define SkShadowFlags_DEFINED |
| 10 | |
| 11 | // A set of flags shared between the SkAmbientShadowMaskFilter and the SkSpotShadowMaskFilter |
| 12 | enum SkShadowFlags { |
| 13 | kNone_ShadowFlag = 0x00, |
| 14 | /** The occluding object is not opaque. Knowing that the occluder is opaque allows |
| 15 | * us to cull shadow geometry behind it and improve performance. */ |
| 16 | kTransparentOccluder_ShadowFlag = 0x01, |
Jim Van Verth | 060d982 | 2017-05-04 09:58:17 -0400 | [diff] [blame] | 17 | /** Don't try to use analytic shadows. */ |
| 18 | kGeometricOnly_ShadowFlag = 0x02, |
Jim Van Verth | 34d6e4b | 2017-06-09 11:09:03 -0400 | [diff] [blame] | 19 | /** Use tonal values when applying color */ |
| 20 | kTonalColor_ShadowFlag = 0x04, |
Jim Van Verth | 2103cf0 | 2017-01-16 13:03:37 -0500 | [diff] [blame] | 21 | /** mask for all shadow flags */ |
Jim Van Verth | 34d6e4b | 2017-06-09 11:09:03 -0400 | [diff] [blame] | 22 | kAll_ShadowFlag = 0x07 |
Jim Van Verth | 2103cf0 | 2017-01-16 13:03:37 -0500 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | #endif |