From 304f9d4e0feb4665d88804c3a4c28b6397c377b0 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Sat, 13 May 2017 13:35:35 -0400 Subject: [PATCH] add and fix parameter names after manually fixing missing names needed to make documentation easier, the bookmaker tool found a number of additional errors. this is why computers will take our jobs R=reed@google.com DOCS_PREVIEW= https://skia.org/?cl=16616 Change-Id: Ieabebf5672601769852adde9be47459602fb43ab Change-Id: Ieabebf5672601769852adde9be47459602fb43ab Reviewed-on: https://skia-review.googlesource.com/16616 Commit-Queue: Cary Clark Reviewed-by: Mike Reed --- include/core/SkCanvas.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 9d02c7fedc..e7bee7f93d 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -119,7 +119,7 @@ public: * Allows the creation of a legacy SkCanvas even though the |bitmap| * and its pixel ref may have an SkColorSpace. */ - SkCanvas(const SkBitmap& bitmap, ColorBehavior); + SkCanvas(const SkBitmap& bitmap, ColorBehavior behavior); #endif /** Construct a canvas with the specified bitmap to draw into. @@ -171,7 +171,7 @@ public: * inherits the properties of the surface that owns this canvas. If this canvas has no parent * surface, then the new surface is created with default properties. */ - sk_sp makeSurface(const SkImageInfo&, const SkSurfaceProps* props = nullptr); + sk_sp makeSurface(const SkImageInfo& info, const SkSurfaceProps* props = nullptr); /** * Return the GPU context of the device that is associated with the canvas. @@ -231,7 +231,7 @@ public: bool readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, int srcX, int srcY); bool readPixels(const SkPixmap& pixmap, int srcX, int srcY); - bool readPixels(const SkBitmap& pixmap, int srcX, int srcY); + bool readPixels(const SkBitmap& bitmap, int srcX, int srcY); /** * This method affects the pixels in the base-layer, and operates in pixel coordinates, @@ -655,7 +655,7 @@ public: @param oval The rectangle bounds of the oval to be drawn @param paint The paint used to draw the oval */ - void drawOval(const SkRect& oval, const SkPaint&); + void drawOval(const SkRect& oval, const SkPaint& paint); /** * Draw the specified RRect using the specified paint The rrect will be filled or stroked @@ -670,7 +670,7 @@ public: * Draw the annulus formed by the outer and inner rrects. The results * are undefined if the outer does not contain the inner. */ - void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint&); + void drawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint); /** Draw the specified circle using the specified paint. If radius is <= 0, then nothing will be drawn. The circle will be filled -- 2.34.1