remove useless reset
void reset(const SkImageInfo& info) is not useful because it sets rowBytes to zero while leaving width alone. This form of reset also doesn't appear to have a caller. TBR=reed@google.com Bug: skia: 6898 Change-Id: I87019420ddc59107aefe0cac27a6b969976f1bf6 Reviewed-on: https://skia-review.googlesource.com/43480 Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org>
This commit is contained in:
parent
76817e4a22
commit
643627e242
@ -31,9 +31,6 @@ public:
|
||||
|
||||
void reset();
|
||||
void reset(const SkImageInfo& info, const void* addr, size_t rowBytes);
|
||||
void reset(const SkImageInfo& info) {
|
||||
this->reset(info, nullptr, 0);
|
||||
}
|
||||
|
||||
// overrides the colorspace in the SkImageInfo of the pixmap
|
||||
void setColorSpace(sk_sp<SkColorSpace> colorSpace);
|
||||
|
@ -61,10 +61,7 @@ public:
|
||||
this->freeStorage();
|
||||
this->INHERITED::reset(info, addr, rb);
|
||||
}
|
||||
void reset(const SkImageInfo& info) {
|
||||
this->freeStorage();
|
||||
this->INHERITED::reset(info);
|
||||
}
|
||||
|
||||
bool SK_WARN_UNUSED_RESULT reset(const SkMask& mask) {
|
||||
this->freeStorage();
|
||||
return this->INHERITED::reset(mask);
|
||||
|
Loading…
Reference in New Issue
Block a user