| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
| 9 #include "SkBitmapSource.h" | 9 #include "SkBitmapSource.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 invalidBitmap2.setConfig(SkBitmap::kARGB_8888_Config, 256, 256); | 311 invalidBitmap2.setConfig(SkBitmap::kARGB_8888_Config, 256, 256); |
| 312 invalidBitmap2.setPixelRef(SkNEW_ARGS(SkMallocPixelRef, | 312 invalidBitmap2.setPixelRef(SkNEW_ARGS(SkMallocPixelRef, |
| 313 (NULL, 256, NULL)))->unref(); | 313 (NULL, 256, NULL)))->unref(); |
| 314 | 314 |
| 315 // The deserialization should detect the pixel ref being too small and f
ail | 315 // The deserialization should detect the pixel ref being too small and f
ail |
| 316 TestBitmapSerialization(validBitmap, invalidBitmap2, false, reporter); | 316 TestBitmapSerialization(validBitmap, invalidBitmap2, false, reporter); |
| 317 } | 317 } |
| 318 } | 318 } |
| 319 | 319 |
| 320 #include "TestClassDef.h" | 320 #include "TestClassDef.h" |
| 321 DEFINE_TESTCLASS("Serialization", SerializationClass, Tests) | 321 DEFINE_TESTCLASS_SHORT(Tests) |
| OLD | NEW |