aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/user
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-07-18 09:25:15 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-18 13:29:31 +0000
commitc3c1c319d22f34583c5994d9b0326596820f8f3d (patch)
treedb4d41080fe7ba7b89601d3c2d0d2af4792d283f /site/user
parent85dcf6bf808048098c43d85bf3e533d1adada4cc (diff)
fix bookmaker
missed an example reference to SkTransferFunctionBehavior TBR=caryclark@google.com NOTRY=true Docs-Preview: https://skia.org/?cl=142103 Bug: skia:6818 Change-Id: I966d37c0a2ad8154f81f801b3f523e899fcb9fde Reviewed-on: https://skia-review.googlesource.com/142103 Commit-Queue: Cary Clark <caryclark@skia.org> Auto-Submit: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'site/user')
-rw-r--r--site/user/api/SkImage_Reference.md2
-rw-r--r--site/user/api/catalog.htm4
2 files changed, 3 insertions, 3 deletions
diff --git a/site/user/api/SkImage_Reference.md b/site/user/api/SkImage_Reference.md
index 3e145d3a35..7b53a55153 100644
--- a/site/user/api/SkImage_Reference.md
+++ b/site/user/api/SkImage_Reference.md
@@ -2645,7 +2645,7 @@ created <a href='#Image'>Image</a> in <a href='#SkImage_makeColorSpace_target'>t
### Example
-<div><fiddle-embed name="ab8bcb9acecbee444019a724d2b0503c"></fiddle-embed></div>
+<div><fiddle-embed name="dbf5f75c1275a3013672f896767140fb"></fiddle-embed></div>
### See Also
diff --git a/site/user/api/catalog.htm b/site/user/api/catalog.htm
index 50cb9cf8ee..601276638e 100644
--- a/site/user/api/catalog.htm
+++ b/site/user/api/catalog.htm
@@ -5753,10 +5753,10 @@
"name": "SkImage::isValid"
},
"SkImage_makeColorSpace": {
- "code": "void draw(SkCanvas* canvas) {\n sk_sp<SkColorSpace> normalColorSpace = SkColorSpace::MakeRGB(\n SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut);\n sk_sp<SkColorSpace> wackyColorSpace = normalColorSpace->makeColorSpin();\n for (auto colorSpace : { normalColorSpace, wackyColorSpace } ) {\n for (auto transfer : { SkTransferFunctionBehavior::kRespect,\n SkTransferFunctionBehavior::kIgnore } ) {\n sk_sp<SkImage> colorSpaced = image->makeColorSpace(colorSpace, transfer);\n canvas->drawImage(colorSpaced, 0, 0);\n canvas->translate(128, 0);\n }\n canvas->translate(-256, 128);\n }\n}",
+ "code": "void draw(SkCanvas* canvas) {\n sk_sp<SkColorSpace> normalColorSpace = SkColorSpace::MakeRGB(\n SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut);\n sk_sp<SkColorSpace> wackyColorSpace = normalColorSpace->makeColorSpin();\n for (auto colorSpace : { normalColorSpace, wackyColorSpace } ) {\n sk_sp<SkImage> colorSpaced = image->makeColorSpace(colorSpace);\n canvas->drawImage(colorSpaced, 0, 0);\n canvas->translate(128, 0);\n }\n}",
"width": 256,
"height": 256,
- "hash": "ab8bcb9acecbee444019a724d2b0503c",
+ "hash": "dbf5f75c1275a3013672f896767140fb",
"file": "SkImage_Reference",
"name": "SkImage::makeColorSpace"
},