SkShadowFlags.h 711 B

1234567891011121314151617181920212223
  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. #ifndef SkShadowFlags_DEFINED
  8. #define SkShadowFlags_DEFINED
  9. // A set of flags shared between the SkAmbientShadowMaskFilter and the SkSpotShadowMaskFilter
  10. enum SkShadowFlags {
  11. kNone_ShadowFlag = 0x00,
  12. /** The occluding object is not opaque. Knowing that the occluder is opaque allows
  13. * us to cull shadow geometry behind it and improve performance. */
  14. kTransparentOccluder_ShadowFlag = 0x01,
  15. /** Don't try to use analytic shadows. */
  16. kGeometricOnly_ShadowFlag = 0x02,
  17. /** mask for all shadow flags */
  18. kAll_ShadowFlag = 0x03
  19. };
  20. #endif