| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
| 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 "SkBitmap.h" | 8 #include "SkBitmap.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkData.h" | 10 #include "SkData.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 } | 288 } |
| 289 SkBitmap bitmap; | 289 SkBitmap bitmap; |
| 290 setup_bitmap(&bitmap, 10, 10); | 290 setup_bitmap(&bitmap, 10, 10); |
| 291 TestImage(reporter, bitmap, | 291 TestImage(reporter, bitmap, |
| 292 "/Subtype /Image\n" | 292 "/Subtype /Image\n" |
| 293 "/Width 10\n" | 293 "/Width 10\n" |
| 294 "/Height 10\n" | 294 "/Height 10\n" |
| 295 "/ColorSpace /DeviceRGB\n" | 295 "/ColorSpace /DeviceRGB\n" |
| 296 "/BitsPerComponent 8\n" | 296 "/BitsPerComponent 8\n" |
| 297 "/Filter /FlateDecode\n" | 297 "/Filter /FlateDecode\n" |
| 298 "/Length 13\n" | 298 "/Length ", |
| 299 ">> stream", | |
| 300 false); | 299 false); |
| 301 } | 300 } |
| 302 | 301 |
| 303 static void TestDCTDecode(skiatest::Reporter* reporter) { | 302 static void TestDCTDecode(skiatest::Reporter* reporter) { |
| 304 SkBitmap bitmap; | 303 SkBitmap bitmap; |
| 305 setup_bitmap(&bitmap, 32, 32); | 304 setup_bitmap(&bitmap, 32, 32); |
| 306 TestImage(reporter, bitmap, | 305 TestImage(reporter, bitmap, |
| 307 "/Subtype /Image\n" | 306 "/Subtype /Image\n" |
| 308 "/Width 32\n" | 307 "/Width 32\n" |
| 309 "/Height 32\n" | 308 "/Height 32\n" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 TestCatalog(reporter); | 420 TestCatalog(reporter); |
| 422 | 421 |
| 423 TestObjectRef(reporter); | 422 TestObjectRef(reporter); |
| 424 | 423 |
| 425 TestSubstitute(reporter); | 424 TestSubstitute(reporter); |
| 426 | 425 |
| 427 test_issue1083(); | 426 test_issue1083(); |
| 428 | 427 |
| 429 TestImages(reporter); | 428 TestImages(reporter); |
| 430 } | 429 } |
| OLD | NEW |