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:
Mike Klein 2019-08-09 10:11:35 -04:00 committed by Skia Commit-Bot
parent ded867f126
commit adfc22df86
3 changed files with 17 additions and 0 deletions

View File

@ -1713,6 +1713,7 @@ if (skia_enable_tools) {
":etc1",
":flags",
":skia",
":skia.h",
":tool_utils",
"modules/skottie",
"modules/skottie:gm",

15
gm/fiddle.cpp Normal file
View 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*) {}

View File

@ -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",