Chromium Code Reviews| Index: tests/DrawBitmapRectTest.cpp |
| diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
| index 9289e11ea8f6a6a9737275fab19dc4304d0e4b9f..7049c0c29909eef30d0a01d13f3f6802879795f3 100644 |
| --- a/tests/DrawBitmapRectTest.cpp |
| +++ b/tests/DrawBitmapRectTest.cpp |
| @@ -44,12 +44,19 @@ public: |
| // Crashing in skia when a pixelref fails in lockPixels |
| // |
| static void test_faulty_pixelref(skiatest::Reporter* reporter) { |
| + SkImageInfo info; |
|
scroggo
2013/12/06 14:50:33
I don't see where this is used.
reed1
2013/12/06 15:48:46
bottom of the file
|
| + info.fWidth = 100; |
| + info.fHeight = 100; |
| + info.fColorType = kPMColor_SkColorType; |
| + info.fAlphaType = kPremul_SkAlphaType; |
| + |
| // need a cache, but don't expect to use it, so the budget is not critical |
| SkAutoTUnref<SkDiscardableMemoryPool> pool(SkNEW_ARGS(SkDiscardableMemoryPool, |
| (10 * 1000, NULL))); |
| SkBitmap bm; |
| bool installSuccess = SkDiscardablePixelRef::Install(SkNEW(FailureImageGenerator), &bm, pool); |
| REPORTER_ASSERT(reporter, installSuccess); |
| + |
| // now our bitmap has a pixelref, but we know it will fail to lock |
| SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterPMColor(200, 200)); |