Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1204)

Unified Diff: src/image/SkImage.cpp

Issue 2264293003: Remove SkPixelRef::getTexture() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkImagePriv.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index fa3580c175d978799649b9053f0ca8c81dadea92..6a301c3f24496895e13ec9335b176f6c7094763f 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -296,23 +296,6 @@ sk_sp<SkImage> SkImage::MakeFromBitmap(const SkBitmap& bm) {
return nullptr;
}
-#if SK_SUPPORT_GPU
- if (GrTexture* tex = pr->getTexture()) {
- SkAutoTUnref<GrTexture> unrefCopy;
- if (!bm.isImmutable()) {
- tex = GrDeepCopyTexture(tex, SkBudgeted::kNo);
- if (nullptr == tex) {
- return nullptr;
- }
- unrefCopy.reset(tex);
- }
- const SkImageInfo info = bm.info();
- return sk_make_sp<SkImage_Gpu>(info.width(), info.height(), bm.getGenerationID(),
- info.alphaType(), tex, sk_ref_sp(info.colorSpace()),
- SkBudgeted::kNo);
- }
-#endif
-
return SkMakeImageFromRasterBitmap(bm, kIfMutable_SkCopyPixelsMode);
}
« no previous file with comments | « src/core/SkImagePriv.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698