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

Unified Diff: tests/PictureTest.cpp

Issue 865873003: remove more dead code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PictureTest.cpp
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 6f9e6e7b38640f9238faae5bd2f240e95355b03c..b63b35eea701fe98893c5eccdf178df950280e03 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -46,30 +46,6 @@ static void make_bm(SkBitmap* bm, int w, int h, SkColor color, bool immutable) {
}
}
-typedef void (*DrawBitmapProc)(SkCanvas*, const SkBitmap&,
- const SkBitmap&, const SkPoint&,
- SkTDArray<SkPixelRef*>* usedPixRefs);
-
-#if 0
-// Although specifiable, this case doesn't seem to make sense (i.e., the
-// bitmap in the shader is never used).
-static void drawsprite_withshader_proc(SkCanvas* canvas, const SkBitmap& bm,
- const SkBitmap& altBM, const SkPoint& pos,
- SkTDArray<SkPixelRef*>* usedPixRefs) {
- SkPaint paint;
- init_paint(&paint, bm);
-
- const SkMatrix& ctm = canvas->getTotalMatrix();
-
- SkPoint p(pos);
- ctm.mapPoints(&p, 1);
-
- canvas->drawSprite(altBM, (int)p.fX, (int)p.fY, &paint);
- *usedPixRefs->append() = bm.pixelRef();
- *usedPixRefs->append() = altBM.pixelRef();
-}
-#endif
-
/* Hit a few SkPicture::Analysis cases not handled elsewhere. */
static void test_analysis(skiatest::Reporter* reporter) {
SkPictureRecorder recorder;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698