diff options
Diffstat (limited to 'site/user/sample/color.md')
-rw-r--r-- | site/user/sample/color.md | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/site/user/sample/color.md b/site/user/sample/color.md index 28d86d396d..3f4d869504 100644 --- a/site/user/sample/color.md +++ b/site/user/sample/color.md @@ -116,11 +116,9 @@ can be in any gamut, but must have a linear transfer function. sk_sp<SkImage> MakeFromEncoded(sk_sp<SkData> encoded); // Create an image from a texture in a particular color space - // Caution: There are versions of this constructor that do not take an - // SkColorSpace. But without an SkColorSpace, Skia does not have - // enough information to draw correctly. - sk_sp<SkImage> MakeFromTexture(GrContext*, const GrBackendTextureDesc&, - SkAlphaType, sk_sp<SkColorSpace>, ...); + sk_sp<SkImage> MakeFromTexture(GrContext*, const GrBackendTexture&, + GrSurfaceOrigin, SkAlphaType, sk_sp<SkColorSpace>, + ...); **SkBitmap** is another (not preferred) representation for image sources. Be careful to not forget the color space. @@ -190,4 +188,5 @@ cannot know how to draw without knowing the color space of the source. It is possible to create **an object that is both a source and destination**, if Skia will both draw into it and then draw it somewhere else. The same rules from above still apply, but it is subtle that the color space tag could have an effect (or no effect) depending on how the object is -used.
\ No newline at end of file +used. + |