diff options
author | Robert Phillips <robertphillips@google.com> | 2017-01-13 11:21:36 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-13 17:15:18 +0000 |
commit | 70b49fd063171a78d3c664ca8af3988f5426319b (patch) | |
tree | 35adcdbbc1d6a76a07eb32c7ddc0ed0744f1bb21 /src | |
parent | f809c1ec98854b6d0e604744a1fc5f9a4ff493be (diff) |
Minor Ganesh refFoo cleanup
Change-Id: I2c66693c280225795a5d36ccc0391fcd4056420d
Reviewed-on: https://skia-review.googlesource.com/6995
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 10 | ||||
-rw-r--r-- | src/gpu/SkGr.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index f25c472819..bf9341f435 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -166,7 +166,7 @@ sk_sp<GrRenderTargetContext> SkGpuDevice::MakeRenderTargetContext( GrPixelConfig config = SkImageInfo2GrPixelConfig(origInfo, *context->caps()); return context->makeRenderTargetContext(SkBackingFit::kExact, // Why exact? origInfo.width(), origInfo.height(), - config, sk_ref_sp(origInfo.colorSpace()), sampleCount, + config, origInfo.refColorSpace(), sampleCount, origin, surfaceProps, budgeted); } @@ -1128,7 +1128,7 @@ void SkGpuDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap, sk_sp<SkSpecialImage> srcImg(SkSpecialImage::MakeFromGpu(srcRect, bitmap.getGenerationID(), std::move(texture), - sk_ref_sp(bitmap.colorSpace()), + bitmap.refColorSpace(), &this->surfaceProps())); this->drawSpecial(draw, srcImg.get(), left, top, paint); @@ -1291,7 +1291,7 @@ sk_sp<SkSpecialImage> SkGpuDevice::makeSpecial(const SkBitmap& bitmap) { return SkSpecialImage::MakeFromGpu(bitmap.bounds(), bitmap.getGenerationID(), texture, - sk_ref_sp(bitmap.colorSpace()), + bitmap.refColorSpace(), &this->surfaceProps()); } @@ -1303,7 +1303,7 @@ sk_sp<SkSpecialImage> SkGpuDevice::makeSpecial(const SkImage* image) { return SkSpecialImage::MakeFromGpu(SkIRect::MakeWH(image->width(), image->height()), image->uniqueID(), sk_ref_sp(texture), - sk_ref_sp(as_IB(image)->onImageInfo().colorSpace()), + as_IB(image)->onImageInfo().refColorSpace(), &this->surfaceProps()); } else if (image->peekPixels(&pm)) { SkBitmap bm; @@ -1336,7 +1336,7 @@ sk_sp<SkSpecialImage> SkGpuDevice::snapSpecial() { srcRect, kNeedNewImageUniqueID_SpecialImage, sProxy, - sk_ref_sp(ii.colorSpace()), + ii.refColorSpace(), &this->surfaceProps()); } diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index eec3cd70d2..f3b900814a 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -188,7 +188,7 @@ GrTexture* GrUploadPixmapToTexture(GrContext* ctx, const SkPixmap& pixmap, SkBud SkImageInfo dstInfo = SkImageInfo::Make(pixmap.width(), pixmap.height(), kN32_SkColorType, kPremul_SkAlphaType, - sk_ref_sp(pixmap.info().colorSpace())); + pixmap.info().refColorSpace()); tmpBitmap.allocPixels(dstInfo); |