name parameters for docs

SkPixmap.h is missing a couple
of parameter names. Named parameters
helps bookmaker generate markdown
and doxygen that describe methods
and functions.

TBR=reed@google.com
Bug: skia:6898
Change-Id: I8f9e1acd677e57e71c26c34759ce4647a5db0548
Reviewed-on: https://skia-review.googlesource.com/42380
Commit-Queue: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
This commit is contained in:
Cary Clark 2017-09-05 09:42:43 -04:00 committed by Skia Commit-Bot
parent e000173f43
commit ec2455bcc9

View File

@ -36,13 +36,13 @@ public:
}
// overrides the colorspace in the SkImageInfo of the pixmap
void setColorSpace(sk_sp<SkColorSpace>);
void setColorSpace(sk_sp<SkColorSpace> colorSpace);
/**
* If supported, set this pixmap to point to the pixels in the specified mask and return true.
* On failure, return false and set this pixmap to empty.
*/
bool SK_WARN_UNUSED_RESULT reset(const SkMask&);
bool SK_WARN_UNUSED_RESULT reset(const SkMask& mask);
/**
* Computes the intersection of area and this pixmap. If that intersection is non-empty,
@ -205,7 +205,7 @@ public:
bool erase(SkColor, const SkIRect& subset) const;
bool erase(SkColor color) const { return this->erase(color, this->bounds()); }
bool erase(const SkColor4f&, const SkIRect* subset = nullptr) const;
bool erase(const SkColor4f& color, const SkIRect* subset = nullptr) const;
private:
const void* fPixels;