From 060d9820364b0cf09c7eb3bda449f24c3dcba2e2 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Thu, 4 May 2017 09:58:17 -0400 Subject: Combine the ambient and spot alphas into the base color for geometric shadows. This matches the analytic shadow approach better, and is color space invariant. Also includes cleanup in SampleAndroidShadows. Bug: skia:6546 Change-Id: I7a7cd060420dae741f967334c8b19542a14f0bcf Reviewed-on: https://skia-review.googlesource.com/15228 Commit-Queue: Jim Van Verth Reviewed-by: Robert Phillips --- include/private/SkShadowFlags.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/private/SkShadowFlags.h b/include/private/SkShadowFlags.h index 23b0f54095..8caf632988 100644 --- a/include/private/SkShadowFlags.h +++ b/include/private/SkShadowFlags.h @@ -14,8 +14,10 @@ enum SkShadowFlags { /** 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, + /** Don't try to use analytic shadows. */ + kGeometricOnly_ShadowFlag = 0x02, /** mask for all shadow flags */ - kAll_ShadowFlag = 0x01 + kAll_ShadowFlag = 0x03 }; #endif -- cgit v1.2.3