diff options
author | 2017-08-24 12:59:48 -0400 | |
---|---|---|
committer | 2017-08-24 18:00:33 +0000 | |
commit | f05bddaac3d8219fcaf623b64897ced81c05d437 (patch) | |
tree | 010ff98072dc3752deee1299b336bfa4b7f726e6 /tools/bookmaker/bookmaker.cpp | |
parent | e253831ee0f3f85c5143e5ac39325400b145106f (diff) |
update canvas doc, primarily readpixels and writepixels
also fixed minor bookmaker bugs so canvas
include and online docs are (bookmaker detected)
error-free
TBR=reed@google.com
Docs-Preview: https://skia.org/?cl=37840
Bug: skia:
Change-Id: Ifcec9c751105444047c37d89fd984dbd4dfd1913
Reviewed-on: https://skia-review.googlesource.com/37840
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tools/bookmaker/bookmaker.cpp')
-rw-r--r-- | tools/bookmaker/bookmaker.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/tools/bookmaker/bookmaker.cpp b/tools/bookmaker/bookmaker.cpp index 939519ef29..cbb34a2a4f 100644 --- a/tools/bookmaker/bookmaker.cpp +++ b/tools/bookmaker/bookmaker.cpp @@ -430,17 +430,24 @@ bool Definition::crossCheckInside(const char* start, const char* end, } } else if (!incEof && '#' == inc.peek() && (defEof || '#' != def.peek())) { inc.next(); - SkASSERT(inc.startsWith("if")); - inc.skipToEndBracket("#"); - SkASSERT(inc.startsWith("#endif")); - inc.skipToEndBracket("\n"); + if (inc.startsWith("if")) { + inc.skipToEndBracket("\n"); + } else if (inc.startsWith("endif")) { + inc.skipToEndBracket("\n"); + } else { + SkASSERT(0); // incomplete + return false; + } } else { break; } inc.next(); } while (true); if (defEof || incEof) { - return defEof == incEof || (!defEof && ';' == def.peek()); + if (defEof == incEof || (!defEof && ';' == def.peek())) { + return true; + } + return false; // allow setting breakpoint on failure } char defCh; do { @@ -1960,7 +1967,7 @@ string BmhParser::word(const string& prefix, const string& delimiter) { DEFINE_string2(bmh, b, "", "A path to a *.bmh file or a directory."); DEFINE_string2(examples, e, "", "File of fiddlecli input, usually fiddle.json (For now, disables -r -f -s)"); -DEFINE_string2(fiddle, f, "fiddleout.json", "File of fiddlecli output."); +DEFINE_string2(fiddle, f, "", "File of fiddlecli output, usually fiddleout.json."); DEFINE_string2(include, i, "", "A path to a *.h file or a directory."); DEFINE_bool2(hack, k, false, "Do a find/replace hack to update all *.bmh files. (Requires -b)"); DEFINE_bool2(populate, p, false, "Populate include from bmh. (Requires -b -i)"); |