From 54f65c473fd6bf6919dfcbad22e924dff7586568 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Tue, 16 Jan 2018 17:04:30 -0500 Subject: Skotty -> Skottie Change-Id: If8b6516024c69b0fc256208874f6666a4e70e12c Reviewed-on: https://skia-review.googlesource.com/95241 Reviewed-by: Mike Reed Commit-Queue: Florin Malita --- dm/DM.cpp | 2 +- dm/DMSrcSink.cpp | 14 +++++++------- dm/DMSrcSink.h | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'dm') 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(FLAGS_mskps, "mskp"); #if !defined(SK_BUILD_FOR_GOOGLE3) - gather_file_srcs(FLAGS_jsons, "json"); + gather_file_srcs(FLAGS_jsons, "json"); #endif #if defined(SK_XML) gather_file_srcs(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 fAnimation; + std::unique_ptr fAnimation; }; #endif -- cgit v1.2.3