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 "SkBitmap.h" | 8 #include "SkBitmap.h" |
| 9 #include "SkCachingPixelRef.h" |
9 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
10 #include "SkData.h" | 11 #include "SkData.h" |
11 #include "SkDecodingImageGenerator.h" | 12 #include "SkDecodingImageGenerator.h" |
12 #include "SkDiscardableMemoryPool.h" | 13 #include "SkDiscardableMemoryPool.h" |
13 #include "SkImageDecoder.h" | 14 #include "SkImageDecoder.h" |
14 #include "SkCachingPixelRef.h" | |
15 #include "SkScaledImageCache.h" | 15 #include "SkScaledImageCache.h" |
16 #include "SkStream.h" | 16 #include "SkStream.h" |
17 #include "SkUtils.h" | 17 #include "SkUtils.h" |
18 | 18 |
19 #include "Test.h" | 19 #include "Test.h" |
20 | 20 |
21 /** | 21 /** |
22 * Fill this bitmap with some color. | 22 * Fill this bitmap with some color. |
23 */ | 23 */ |
24 static void make_test_image(SkBitmap* bm) { | 24 static void make_test_image(SkBitmap* bm) { |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 SkDiscardableMemoryPool* globalPool = SkGetGlobalDiscardableMemoryPool(); | 315 SkDiscardableMemoryPool* globalPool = SkGetGlobalDiscardableMemoryPool(); |
316 // Only acts differently from NULL on a platform that has a | 316 // Only acts differently from NULL on a platform that has a |
317 // default discardable memory implementation that differs from the | 317 // default discardable memory implementation that differs from the |
318 // global DM pool. | 318 // global DM pool. |
319 check_pixelref(TestImageGenerator::kFailGetPixels_TestType, | 319 check_pixelref(TestImageGenerator::kFailGetPixels_TestType, |
320 reporter, kSkDiscardable_PixelRefType, globalPool); | 320 reporter, kSkDiscardable_PixelRefType, globalPool); |
321 check_pixelref(TestImageGenerator::kSucceedGetPixels_TestType, | 321 check_pixelref(TestImageGenerator::kSucceedGetPixels_TestType, |
322 reporter, kSkDiscardable_PixelRefType, globalPool); | 322 reporter, kSkDiscardable_PixelRefType, globalPool); |
323 } | 323 } |
OLD | NEW |