aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-01-16 17:04:30 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-17 14:15:36 +0000
commit54f65c473fd6bf6919dfcbad22e924dff7586568 (patch)
treee241fc08b1dff9c41621bd52afca21c6059ed34b /dm
parentd452434d1717aa42993a4c671ffc5625fe273957 (diff)
Skotty -> Skottie
Change-Id: If8b6516024c69b0fc256208874f6666a4e70e12c Reviewed-on: https://skia-review.googlesource.com/95241 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp2
-rw-r--r--dm/DMSrcSink.cpp14
-rw-r--r--dm/DMSrcSink.h8
3 files changed, 12 insertions, 12 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index ee9a7f5678..61a75951d1 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -785,7 +785,7 @@ static bool gather_srcs() {
}
gather_file_srcs<MSKPSrc>(FLAGS_mskps, "mskp");
#if !defined(SK_BUILD_FOR_GOOGLE3)
- gather_file_srcs<SkottySrc>(FLAGS_jsons, "json");
+ gather_file_srcs<SkottieSrc>(FLAGS_jsons, "json");
#endif
#if defined(SK_XML)
gather_file_srcs<SVGSrc>(FLAGS_svgs, "svg");
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index d0c468159e..506d3fb52e 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -61,7 +61,7 @@
#endif
#if !defined(SK_BUILD_FOR_GOOGLE3)
- #include "Skotty.h"
+ #include "Skottie.h"
#endif
#if defined(SK_XML)
@@ -1317,10 +1317,10 @@ Name DDLSKPSrc::name() const { return SkOSPath::Basename(fPath.c_str()); }
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#if !defined(SK_BUILD_FOR_GOOGLE3)
-SkottySrc::SkottySrc(Path path)
+SkottieSrc::SkottieSrc(Path path)
: fName(SkOSPath::Basename(path.c_str())) {
- fAnimation = skotty::Animation::MakeFromFile(path.c_str());
+ fAnimation = skottie::Animation::MakeFromFile(path.c_str());
if (!fAnimation) {
return;
}
@@ -1334,7 +1334,7 @@ SkottySrc::SkottySrc(Path path)
}
-Error SkottySrc::draw(SkCanvas* canvas) const {
+Error SkottieSrc::draw(SkCanvas* canvas) const {
if (!fAnimation) {
return SkStringPrintf("Unable to parse file: %s", fName.c_str());
}
@@ -1383,15 +1383,15 @@ Error SkottySrc::draw(SkCanvas* canvas) const {
return "";
}
-SkISize SkottySrc::size() const {
+SkISize SkottieSrc::size() const {
// Padding for grid.
return SkISize::Make(kTileCount * (fTileSize.width() + 1),
kTileCount * (fTileSize.height() + 1));
}
-Name SkottySrc::name() const { return fName; }
+Name SkottieSrc::name() const { return fName; }
-bool SkottySrc::veto(SinkFlags flags) const {
+bool SkottieSrc::veto(SinkFlags flags) const {
// No need to test to non-(raster||gpu||vector) or indirect backends.
bool type_ok = flags.type == SinkFlags::kRaster
|| flags.type == SinkFlags::kGPU
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 9a6cb0c6ec..d44655a477 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -21,7 +21,7 @@
//#define TEST_VIA_SVG
-namespace skotty { class Animation; }
+namespace skottie { class Animation; }
namespace DM {
@@ -263,9 +263,9 @@ private:
};
#if !defined(SK_BUILD_FOR_GOOGLE3)
-class SkottySrc final : public Src {
+class SkottieSrc final : public Src {
public:
- explicit SkottySrc(Path path);
+ explicit SkottieSrc(Path path);
Error draw(SkCanvas*) const override;
SkISize size() const override;
@@ -278,7 +278,7 @@ private:
Name fName;
SkISize fTileSize = SkISize::MakeEmpty();
- std::unique_ptr<skotty::Animation> fAnimation;
+ std::unique_ptr<skottie::Animation> fAnimation;
};
#endif