57061eea44
Lots of changes here: * Batch circle shadows with rrect shadows * Avoid checking matrix and path conditions twice * Remove lots of checks for 1/2 pixel radii (needed before to force the rrect through the regular GPU path) * Fix scaling effect on ambient blur width * Remove unused flags Bug: skia:6119 Change-Id: If0eb78ec4d19d9f978b19bdbc3a7e558a4db2ed9 Reviewed-on: https://skia-review.googlesource.com/14654 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
22 lines
627 B
C
22 lines
627 B
C
/*
|
|
* Copyright 2017 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkShadowFlags_DEFINED
|
|
#define SkShadowFlags_DEFINED
|
|
|
|
// A set of flags shared between the SkAmbientShadowMaskFilter and the SkSpotShadowMaskFilter
|
|
enum SkShadowFlags {
|
|
kNone_ShadowFlag = 0x00,
|
|
/** The occluding object is not opaque. Knowing that the occluder is opaque allows
|
|
* us to cull shadow geometry behind it and improve performance. */
|
|
kTransparentOccluder_ShadowFlag = 0x01,
|
|
/** mask for all shadow flags */
|
|
kAll_ShadowFlag = 0x01
|
|
};
|
|
|
|
#endif
|