Index: tests/FlatDataTest.cpp |
diff --git a/tests/FlatDataTest.cpp b/tests/FlatDataTest.cpp |
index 2de270d50e5cabe529e67a3de37b6af1ff059f29..2be92b6f41c092d57516f82108cc90628555afab 100644 |
--- a/tests/FlatDataTest.cpp |
+++ b/tests/FlatDataTest.cpp |
@@ -21,11 +21,6 @@ struct SkFlattenableTraits { |
buffer.writeFlattenable(&flattenable); |
} |
}; |
-struct SkBitmapTraits { |
- static void Flatten(SkWriteBuffer& buffer, const SkBitmap& bitmap) { |
- bitmap.flatten(buffer); |
- } |
-}; |
class Controller : public SkChunkFlatController { |
public: |
@@ -65,17 +60,6 @@ DEF_TEST(FlatData, reporter) { |
SkShader::kRepeat_TileMode)); |
testCreate<SkFlattenableTraits>(reporter, *shader); |
- // Test SkBitmap |
- { |
- SkBitmap bm; |
- bm.allocN32Pixels(50, 50); |
- SkCanvas canvas(bm); |
- SkPaint paint; |
- paint.setShader(shader); |
- canvas.drawPaint(paint); |
- testCreate<SkBitmapTraits>(reporter, bm); |
- } |
- |
// Test SkColorFilter |
SkAutoTUnref<SkColorFilter> cf(SkColorFilter::CreateLightingFilter(SK_ColorBLUE, SK_ColorRED)); |
testCreate<SkFlattenableTraits>(reporter, *cf); |