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

Unified Diff: tests/FlatDataTest.cpp

Issue 295793002: stop calling SkBitmap::flatten (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 6 years, 7 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/effects/SkBitmapSource.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/effects/SkBitmapSource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698