aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2017-09-29 14:25:30 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-29 20:15:14 +0000
commit4b85b6dd5a7296f4543b226a534c76ef6f438e55 (patch)
tree2cf08925d1c1d3ac9a85b1a14d607655f329e3f8 /src/gpu/mtl
parent9a3478bf82ca528d7e82d715595b08860aac2734 (diff)
fix setPixelRef
In setPixelRef() If dx or dy are negative, assert in debug. Pin pixel ref origin to account for dx and dy on right. If colorType is unknown, ignore pr pixelref. Set Bitmap rowbytes to match pixelref rowbytes. In tryAllocPixels() Return true early if colorType is unknown. This assumes that the desired behavior is for Bitmaps set to kUnknown_SkColorType to avoid allocating SkPixelRef while avoiding debug asserts, which is what current gm tests like BitmapCopy_extractSubset test for. R=reed@google.com Change-Id: I0d36032d36a0b7dc111f4aff18c71382874fe1f5 Reviewed-on: https://skia-review.googlesource.com/53420 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'src/gpu/mtl')
0 files changed, 0 insertions, 0 deletions