blob: 8caf63298816d7b57eeab3b9f945855ddb28a413 [file] [log] [blame]
Jim Van Verth2103cf02017-01-16 13:03:37 -05001/*
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
12enum 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 Verth060d9822017-05-04 09:58:17 -040017 /** Don't try to use analytic shadows. */
18 kGeometricOnly_ShadowFlag = 0x02,
Jim Van Verth2103cf02017-01-16 13:03:37 -050019 /** mask for all shadow flags */
Jim Van Vertha5566842018-02-22 10:58:34 -050020 kAll_ShadowFlag = 0x03
Jim Van Verth2103cf02017-01-16 13:03:37 -050021};
22
23#endif