diff --git a/BUILD.gn b/BUILD.gn index 0a87f3c3ce..20ebfae76a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1713,6 +1713,7 @@ if (skia_enable_tools) { ":etc1", ":flags", ":skia", + ":skia.h", ":tool_utils", "modules/skottie", "modules/skottie:gm", diff --git a/gm/fiddle.cpp b/gm/fiddle.cpp new file mode 100644 index 0000000000..dd57f2faf1 --- /dev/null +++ b/gm/fiddle.cpp @@ -0,0 +1,15 @@ +/* + * Copyright 2019 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "gm/gm.h" +#include "skia.h" + +static void draw(SkCanvas* canvas); +DEF_SIMPLE_GM(fiddle, canvas, 256, 256) { draw(canvas); } + +// Paste your fiddle.skia.org code over this stub. +void draw(SkCanvas*) {} diff --git a/gn/gm.gni b/gn/gm.gni index dc29b50d88..b1434411c2 100644 --- a/gn/gm.gni +++ b/gn/gm.gni @@ -152,6 +152,7 @@ gm_sources = [ "$_gm/extractbitmap.cpp", "$_gm/fadefilter.cpp", "$_gm/fatpathfill.cpp", + "$_gm/fiddle.cpp", "$_gm/filltypes.cpp", "$_gm/filltypespersp.cpp", "$_gm/filterbitmap.cpp",