3c5cfb0d15
Ran: find src include \( -name '*.cpp' -o -name '*.h' \) -executable -exec chmod -x {} \; BUG=skia: Change-Id: I04a4adbfcea9fd9860ab83d43734dc5158d3a884 Reviewed-on: https://skia-review.googlesource.com/8220 Commit-Queue: Ben Wagner <benjaminwagner@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
28 lines
764 B
C++
28 lines
764 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 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
|