Comments: note existance of SkImage::newShader next to CreateBitmapShader
authorhalcanary <halcanary@google.com>
Tue, 8 Sep 2015 14:12:25 +0000 (07:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 8 Sep 2015 14:12:25 +0000 (07:12 -0700)
Review URL: https://codereview.chromium.org/1329083004

include/core/SkShader.h

index 76b86a6..abd50d6 100644 (file)
@@ -399,6 +399,8 @@ public:
                                         TileMode tmx, TileMode tmy,
                                         const SkMatrix* localMatrix = NULL);
 
+    // NOTE: You can create an SkImage Shader with SkImage::newShader().
+
     /** Call this to create a new shader that will draw with the specified picture.
      *
      *  @param src  The picture to use inside the shader (if not NULL, its ref count