diff options
author | 2016-07-21 09:35:07 -0700 | |
---|---|---|
committer | 2016-07-21 09:35:07 -0700 | |
commit | f292a0c862f1c120cade1e8ac0f1882844eb343a (patch) | |
tree | b4e7f152669539c0db638b6606e3ff79013a7b48 /src/gpu/SkGr.cpp | |
parent | 725266a9b174b987911e47537d0353c607aefb2f (diff) |
Remove SkGrPixelRef
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2167173002
Review-Url: https://codereview.chromium.org/2167173002
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r-- | src/gpu/SkGr.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index 3b3783ad35..ef3a39bc61 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -24,7 +24,6 @@ #include "SkCanvas.h" #include "SkData.h" #include "SkErrorInternals.h" -#include "SkGrPixelRef.h" #include "SkMessageBus.h" #include "SkMipMap.h" #include "SkPixelRef.h" @@ -758,13 +757,6 @@ SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque, return SkImageInfo::Make(w, h, ct, at, std::move(colorSpace)); } - -void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap* dst) { - const SkImageInfo info = GrMakeInfoFromTexture(src, w, h, isOpaque); - dst->setInfo(info); - dst->setPixelRef(new SkGrPixelRef(info, src))->unref(); -} - GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality paintFilterQuality, const SkMatrix& viewM, const SkMatrix& localM, |