aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGr.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-07-21 09:35:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-21 09:35:07 -0700
commitf292a0c862f1c120cade1e8ac0f1882844eb343a (patch)
treeb4e7f152669539c0db638b6606e3ff79013a7b48 /src/gpu/SkGr.cpp
parent725266a9b174b987911e47537d0353c607aefb2f (diff)
Remove SkGrPixelRef
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r--src/gpu/SkGr.cpp8
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,