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 // This tests out GIF decoder (SkImageDecoder_libgif.cpp) | 8 // This tests out GIF decoder (SkImageDecoder_libgif.cpp) |
9 // It is not used on these platforms: | 9 // It is not used on these platforms: |
10 #if (!defined(SK_BUILD_FOR_WIN32)) && \ | 10 #if (!defined(SK_BUILD_FOR_WIN32)) && \ |
11 (!defined(SK_BUILD_FOR_IOS)) && \ | 11 (!defined(SK_BUILD_FOR_IOS)) && \ |
12 (!defined(SK_BUILD_FOR_MAC)) | 12 (!defined(SK_BUILD_FOR_MAC)) |
13 | 13 |
14 #include "Test.h" | 14 #include "Test.h" |
15 #include "TestClassDef.h" | |
16 #include "SkBitmap.h" | 15 #include "SkBitmap.h" |
17 #include "SkData.h" | 16 #include "SkData.h" |
18 #include "SkForceLinking.h" | 17 #include "SkForceLinking.h" |
19 #include "SkImage.h" | 18 #include "SkImage.h" |
20 #include "SkImageDecoder.h" | 19 #include "SkImageDecoder.h" |
21 #include "SkStream.h" | 20 #include "SkStream.h" |
22 | 21 |
23 __SK_FORCE_IMAGE_DECODER_LINKING; | 22 __SK_FORCE_IMAGE_DECODER_LINKING; |
24 | 23 |
25 namespace { | 24 namespace { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // test short Gif. 80 is missing a few bytes. | 198 // test short Gif. 80 is missing a few bytes. |
200 test_gif_data_short(reporter, static_cast<void *>(gifData), 80); | 199 test_gif_data_short(reporter, static_cast<void *>(gifData), 80); |
201 // "libgif warning [DGifGetLine]" | 200 // "libgif warning [DGifGetLine]" |
202 | 201 |
203 test_interlaced_gif_data(reporter, static_cast<void *>(interlacedGif), | 202 test_interlaced_gif_data(reporter, static_cast<void *>(interlacedGif), |
204 100); // 100 is missing a few bytes | 203 100); // 100 is missing a few bytes |
205 // "libgif warning [interlace DGifGetLine]" | 204 // "libgif warning [interlace DGifGetLine]" |
206 } | 205 } |
207 | 206 |
208 #endif // !(SK_BUILD_FOR_WIN32||SK_BUILD_FOR_IOS||SK_BUILD_FOR_MAC) | 207 #endif // !(SK_BUILD_FOR_WIN32||SK_BUILD_FOR_IOS||SK_BUILD_FOR_MAC) |
OLD | NEW |