add a stub for running fiddles as GMs
This is about the 15th time I've hacked this up. Change-Id: I0c75c0d04133d867e942c39eba693fd7227ba0f5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/233240 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
ded867f126
commit
adfc22df86
1
BUILD.gn
1
BUILD.gn
@ -1713,6 +1713,7 @@ if (skia_enable_tools) {
|
|||||||
":etc1",
|
":etc1",
|
||||||
":flags",
|
":flags",
|
||||||
":skia",
|
":skia",
|
||||||
|
":skia.h",
|
||||||
":tool_utils",
|
":tool_utils",
|
||||||
"modules/skottie",
|
"modules/skottie",
|
||||||
"modules/skottie:gm",
|
"modules/skottie:gm",
|
||||||
|
15
gm/fiddle.cpp
Normal file
15
gm/fiddle.cpp
Normal file
@ -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*) {}
|
@ -152,6 +152,7 @@ gm_sources = [
|
|||||||
"$_gm/extractbitmap.cpp",
|
"$_gm/extractbitmap.cpp",
|
||||||
"$_gm/fadefilter.cpp",
|
"$_gm/fadefilter.cpp",
|
||||||
"$_gm/fatpathfill.cpp",
|
"$_gm/fatpathfill.cpp",
|
||||||
|
"$_gm/fiddle.cpp",
|
||||||
"$_gm/filltypes.cpp",
|
"$_gm/filltypes.cpp",
|
||||||
"$_gm/filltypespersp.cpp",
|
"$_gm/filltypespersp.cpp",
|
||||||
"$_gm/filterbitmap.cpp",
|
"$_gm/filterbitmap.cpp",
|
||||||
|
Loading…
Reference in New Issue
Block a user