diff options
Diffstat (limited to 'gfx/skia_util.h')
-rw-r--r-- | gfx/skia_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/skia_util.h b/gfx/skia_util.h index 26c54bf..00a1d1c 100644 --- a/gfx/skia_util.h +++ b/gfx/skia_util.h @@ -22,9 +22,9 @@ gfx::Rect SkRectToRect(const SkRect& rect); // Creates a vertical gradient shader. The caller owns the shader. // Example usage to avoid leaks: -// paint.setShader(gfx::CreateGradientShader(0, 10, red, blue))->safeUnref(); +// SkSafeUnref(paint.setShader(gfx::CreateGradientShader(0, 10, red, blue))); // -// (The old shader in the paint, if any, needs to be freed, and safeUnref will +// (The old shader in the paint, if any, needs to be freed, and SkSafeUnref will // handle the NULL case.) SkShader* CreateGradientShader(int start_point, int end_point, |