From 4204da25aa4c6e0b321314aa32fd9affb4865563 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 17 May 2017 08:53:36 -0400 Subject: move shadows to device virtual This CL keeps the impl for each device backend in the utils file for simplicity (shared helpers). Future CLs may move into their respective impl as they become more specialized. Bug: skia: Change-Id: I97ce6cdcc5106ebf4c84778f943cc32d0b7613c1 Reviewed-on: https://skia-review.googlesource.com/15893 Reviewed-by: Mike Klein Commit-Queue: Mike Reed --- src/core/SkDrawShadowRec.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/core/SkDrawShadowRec.h (limited to 'src/core/SkDrawShadowRec.h') diff --git a/src/core/SkDrawShadowRec.h b/src/core/SkDrawShadowRec.h new file mode 100644 index 0000000000..19199c0cad --- /dev/null +++ b/src/core/SkDrawShadowRec.h @@ -0,0 +1,23 @@ +/* + * 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 SkDrawShadowRec_DEFINED +#define SkDrawShadowRec_DEFINED + +#include "SkPath.h" + +struct SkDrawShadowRec { + SkPoint3 fZPlaneParams; + SkPoint3 fLightPos; + SkScalar fLightRadius; + float fAmbientAlpha; + float fSpotAlpha; + SkColor fColor; + uint32_t fFlags; +}; + +#endif -- cgit v1.2.3