be1c996589
SkMaskFilter::MakeBlur expects a sigma value, but Flutter/Libtxt had incorrectly called it a radius. Change-Id: I9ab1ef7a92370ca4825a65ca6f06e1fe9ac55167 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/401496 Reviewed-by: Julia Lavrova <jlavrova@google.com> Commit-Queue: Jason Simmons <jsimmons@google.com>
31 lines
610 B
C++
31 lines
610 B
C++
// Copyright 2019 Google LLC.
|
|
#ifndef TextShadow_DEFINED
|
|
#define TextShadow_DEFINED
|
|
|
|
#include "include/core/SkColor.h"
|
|
#include "include/core/SkPoint.h"
|
|
|
|
namespace skia {
|
|
namespace textlayout {
|
|
|
|
class TextShadow {
|
|
public:
|
|
SkColor fColor = SK_ColorBLACK;
|
|
SkPoint fOffset;
|
|
double fBlurSigma = 0.0;
|
|
|
|
TextShadow();
|
|
|
|
TextShadow(SkColor color, SkPoint offset, double blurSigma);
|
|
|
|
bool operator==(const TextShadow& other) const;
|
|
|
|
bool operator!=(const TextShadow& other) const;
|
|
|
|
bool hasShadow() const;
|
|
};
|
|
} // namespace textlayout
|
|
} // namespace skia
|
|
|
|
#endif // TextShadow_DEFINED
|