skia2/site/user/api
Cary Clark d98f78cd01 alternative no anonymous enums
Anonymous enums play havoc with documentation;
there's no name to refer to. It may be that all
enums may either be named or replaced with constexpr
without breaking anything. Try replacing all
anonymous enums in include/core to see what happens.

This names SkCanvas::SaveLayerFlagsSet but leaves
SkCanvas::SaveLayerFlags as a uint32_t, to reduce
risk as compared to review.skia.org/123584.

There's also some chance that external linkage will
break if some client refers to anonymous enum in a way
that could require its address: see
https://stackoverflow.com/questions/22867654/enum-vs-constexpr-for-actual-static-constants-inside-classes
(This CL does not require definitions + declarations)

Brought bookmaker docs in line with this change.
This also tripped over missing code in bookmaker
handling constexpr so added that as well.

R=reed@google.com,bsalomon@google.com

Docs-Preview: https://skia.org/?cl=123920
Docs-Preview: https://skia.org/?cl=123584
Bug: skia:6898
Change-Id: I14a342edcfd59e139ef9e4501f562417c4c60391
Reviewed-on: https://skia-review.googlesource.com/123920
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
2018-04-26 17:11:53 +00:00
..
catalog.htm alternative no anonymous enums 2018-04-26 17:11:53 +00:00
index.md Docs: clean up links 2018-02-20 16:52:03 +00:00
METADATA Fix api METADATA json. 2018-02-09 22:41:09 +00:00
SkAutoCanvasRestore_Reference.md fix bugs exposed by documenting SkImageInfo 2018-04-03 16:09:56 +00:00
SkBitmap_Reference.md document SkColor.h 2018-04-16 16:26:20 +00:00
skcanvas_creation.md Docs: clean up links 2018-02-20 16:52:03 +00:00
skcanvas_overview.md Docs: clean up links 2018-02-20 16:52:03 +00:00
SkCanvas_Reference.md alternative no anonymous enums 2018-04-26 17:11:53 +00:00
SkColor4f_Reference.md document SkColor.h 2018-04-16 16:26:20 +00:00
SkColor_Reference.md document SkColor.h 2018-04-16 16:26:20 +00:00
SkImage_Reference.md update md files 2018-04-24 18:32:46 +00:00
SkImageInfo_Reference.md document SkColor.h 2018-04-16 16:26:20 +00:00
SkIPoint16_Reference.md improve bookmaker defines and references 2018-02-16 15:35:36 +00:00
SkIPoint_Reference.md Update markdown files 2018-04-05 06:52:49 +00:00
SkIRect_Reference.md fix bm gm 2018-04-12 14:18:50 +00:00
SkMatrix_Reference.md alternative no anonymous enums 2018-04-26 17:11:53 +00:00
skpaint_overview.md Remove examples of now removed SkArcToPathEffect. 2017-08-16 18:38:15 +00:00
SkPaint_Reference.md alternative no anonymous enums 2018-04-26 17:11:53 +00:00
SkPath_Reference.md fix bugs exposed by documenting SkImageInfo 2018-04-03 16:09:56 +00:00
SkPixmap_Reference.md document SkColor.h 2018-04-16 16:26:20 +00:00
SkPoint_Reference.md work in imageinfo and phrase substitution 2018-03-05 18:48:15 +00:00
SkRect_Reference.md fix bm gm 2018-04-12 14:18:50 +00:00
SkSurface_Reference.md update md files 2018-04-24 18:32:46 +00:00
undocumented.md document SkColor.h 2018-04-16 16:26:20 +00:00
usingBookmaker.md fix bugs exposed by documenting SkImageInfo 2018-04-03 16:09:56 +00:00