skia2/site
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
..
dev Update 'Working in a Chromium repo' documentation. 2018-04-05 17:52:42 +00:00
user alternative no anonymous enums 2018-04-26 17:11:53 +00:00
favicon.ico Add a favicon for docs. 2015-01-08 13:42:13 -08:00
index_zh.md Translate index.md to Chinese 2017-07-25 13:23:52 +00:00
index.md Document minimum OS requirements. 2018-04-19 19:38:44 +00:00
METADATA Add some METADATA files to control docs layout. 2015-03-05 07:11:13 -08:00
robots.txt Add robots.txt 2015-01-16 11:13:53 -08:00
roles.md Doc: htmlify roles table to allow easier modification 2015-03-17 09:56:33 -07:00
schedule.md Update milestone schedule on skia.org 2017-02-21 19:12:37 +00:00