fix android-only function now that fRec is no longer used
Bug: skia:6481 Change-Id: I9805b6eb824257038fc8521753d32fecec1433dd Reviewed-on: https://skia-review.googlesource.com/13599 Reviewed-by: Mike Reed <reed@google.com>
This commit is contained in:
parent
a3735cd34b
commit
215989330c
@ -82,10 +82,9 @@ void SkPixelRef::android_only_reset(const SkImageInfo& info, size_t rowBytes,
|
||||
validate_pixels_ctable(info, ctable.get());
|
||||
|
||||
*const_cast<SkImageInfo*>(&fInfo) = info;
|
||||
fRowBytes = rowBytes;
|
||||
fCTable = std::move(ctable);
|
||||
// note: we do not change fRec.fPixels
|
||||
fRec.fRowBytes = rowBytes;
|
||||
fRec.fColorTable = fCTable.get();
|
||||
// note: we do not change fPixels
|
||||
|
||||
// conservative, since its possible the "new" settings are the same as the old.
|
||||
this->notifyPixelsChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user