2103cf0ff0
This does not change the public API. BUG=skia:6119 Change-Id: Ibdcd2f8611bc2eec332d8a65e5d51246b89a0a90 Reviewed-on: https://skia-review.googlesource.com/7083 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
28 lines
764 B
C++
Executable File
28 lines
764 B
C++
Executable File
|
|
/*
|
|
* 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 SkShadowUtils_DEFINED
|
|
#define SkShadowUtils_DEFINED
|
|
|
|
#include "SkColor.h"
|
|
#include "SkScalar.h"
|
|
#include "../private/SkShadowFlags.h"
|
|
|
|
class SkCanvas;
|
|
class SkPath;
|
|
|
|
class SkShadowUtils {
|
|
public:
|
|
// Draw an offset spot shadow and outlining ambient shadow for the given path.
|
|
static void DrawShadow(SkCanvas*, const SkPath& path, SkScalar occluderHeight,
|
|
const SkPoint3& lightPos, SkScalar lightRadius,
|
|
SkScalar ambientAlpha, SkScalar spotAlpha, SkColor color,
|
|
uint32_t flags = SkShadowFlags::kNone_ShadowFlag);
|
|
};
|
|
|
|
#endif
|