diff options
author | Cary Clark <caryclark@skia.org> | 2018-11-09 23:16:58 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-11-10 04:49:37 +0000 |
commit | 8cc4cdc4676b2dc525d83f9178a5aea0714ec610 (patch) | |
tree | f3c2527482a45bdece181e30ab13aeb21fb841fe /docs | |
parent | 1c3f17fffa79d42b50b2bca756245478da9ea037 (diff) | |
download | platform_external_skqp-8cc4cdc4676b2dc525d83f9178a5aea0714ec610.tar.gz platform_external_skqp-8cc4cdc4676b2dc525d83f9178a5aea0714ec610.tar.bz2 platform_external_skqp-8cc4cdc4676b2dc525d83f9178a5aea0714ec610.zip |
fix bookmaker
this fixes the build
The checked in code is tricky because bookmaker
doesn't understand the value of the #define
so doesn't know which side of the #ifdef is valid.
So it assumes it should have both.
But then there are two identical functions:
SkFontHinting getHinting() const
Hinting getHinting() const
since just like C, bookmaker can't uniquely
identify a function on its return type alone.
So to fix the build, the second one is commented out
bookmaker-style, using the lines mentioned below.
When legacy flags for hinting enum gets
re-landed, remove these lines to reenable
the documentation for SkFontHinting getHinting() const
" # Disable for now
" #ToDo no spelling errors
" ###$ block comment
" $$$# end of block comment
" #ToDo ##
TBR=reed@google.com
Docs-Preview: https://skia.org/?cl=170275
Bug: skia:
Change-Id: Ibc0e9fac48fd0b57524a35133306728e38b600d6
Reviewed-on: https://skia-review.googlesource.com/c/170275
Commit-Queue: Cary Clark <caryclark@skia.org>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/SkPaint_Reference.bmh | 67 |
1 files changed, 56 insertions, 11 deletions
diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh index 6c91f089a2..44c51241f0 100644 --- a/docs/SkPaint_Reference.bmh +++ b/docs/SkPaint_Reference.bmh @@ -296,20 +296,26 @@ $$$# # restore original markup character #Line # glyph outline adjustment ## ## -#Method SkFontHinting getHinting() const -#In Hinting -#Line # returns Hinting, glyph outline adjustment level ## +#Enum Hinting +#Line # level of glyph outline adjustment ## + +#Code #Populate +## -#Example - SkPaint paint; - SkDebugf("SkFontHinting::kNormal %c= paint.getHinting()\n", - SkFontHinting::kNormal == paint.getHinting() ? '=' : ':'); +#Const kNo_Hinting 0 +#Deprecated +## +#Const kSlight_Hinting 1 +#Deprecated +## +#Const kNormal_Hinting 2 +#Deprecated +## +#Const kFull_Hinting 3 +#Deprecated +## - #StdOut - SkFontHinting::kNormal == paint.getHinting() - ## - ## ## #Method void setHinting(SkFontHinting hintingLevel) @@ -328,6 +334,45 @@ $$$# # restore original markup character ## ## +#Method Hinting getHinting() const +#In Hinting +#Line # returns Hinting, glyph outline adjustment level ## +#Populate +#NoExample +## +## + +#Method void setHinting(Hinting h) +#In Hinting +#Line # returns Hinting, glyph outline adjustment level ## +#Populate +#NoExample +## +## + +# Disable for now +#ToDo no spelling errors +###$ block comment + +#Method SkFontHinting getHinting() const +#In Hinting +#Line # returns Hinting, glyph outline adjustment level ## +#Populate + + #Example + SkPaint paint; + SkDebugf("SkFontHinting::kNormal %c= paint.getHinting()\n", + SkFontHinting::kNormal == paint.getHinting() ? '=' : ':'); + + #StdOut + SkFontHinting::kNormal == paint.getHinting() + ## + ## +## + +$$$# end of block comment +#ToDo ## + # ------------------------------------------------------------------------------ #Subtopic Flags #Line # attributes represented by single bits ## |