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

Unified Diff: src/core/SkSpecialImage.cpp

Issue 2158913004: remove unused MakeFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/SkSpecialImage.h ('k') | tests/SpecialImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpecialImage.cpp
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp
index f903270dff72dfd1569cbe9a9c9fe45d1dd0d69d..8875d2248ff6c1035c6ce940dfa3f5b2c1796583 100644
--- a/src/core/SkSpecialImage.cpp
+++ b/src/core/SkSpecialImage.cpp
@@ -335,19 +335,6 @@ public:
}
}
- SkSpecialImage_Raster(const SkIRect& subset,
- const SkPixmap& pixmap,
- RasterReleaseProc releaseProc,
- ReleaseContext context,
- const SkSurfaceProps* props)
- : INHERITED(subset, kNeedNewImageUniqueID_SpecialImage, props) {
- fBitmap.installPixels(pixmap.info(), pixmap.writable_addr(),
- pixmap.rowBytes(), pixmap.ctable(),
- releaseProc, context);
- }
-
- ~SkSpecialImage_Raster() override { }
-
bool isOpaque() const override { return fBitmap.isOpaque(); }
size_t getSize() const override { return fBitmap.getSize(); }
@@ -428,19 +415,6 @@ sk_sp<SkSpecialImage> SkSpecialImage::MakeFromRaster(const SkIRect& subset,
return sk_make_sp<SkSpecialImage_Raster>(subset, bm, props);
}
-sk_sp<SkSpecialImage> SkSpecialImage::MakeFromPixmap(const SkIRect& subset,
- const SkPixmap& src,
- RasterReleaseProc releaseProc,
- ReleaseContext context,
- const SkSurfaceProps* props) {
- if (!src.addr()) {
- return nullptr;
- }
-
- return sk_make_sp<SkSpecialImage_Raster>(subset, src, releaseProc, context, props);
-}
-
-
#if SK_SUPPORT_GPU
///////////////////////////////////////////////////////////////////////////////
#include "GrTexture.h"
« no previous file with comments | « src/core/SkSpecialImage.h ('k') | tests/SpecialImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698