OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "SkBitmapRegionDecoderInterface.h" | 9 #include "SkBitmapRegionDecoderInterface.h" |
10 #include "SkCodec.h" | 10 #include "SkCodec.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 /* | 27 /* |
28 * Three differences from the Android version: | 28 * Three differences from the Android version: |
29 * Returns a Skia bitmap instead of an Android bitmap. | 29 * Returns a Skia bitmap instead of an Android bitmap. |
30 * Android version attempts to reuse a recycled bitmap. | 30 * Android version attempts to reuse a recycled bitmap. |
31 * Removed the options object and used parameters for color type and | 31 * Removed the options object and used parameters for color type and |
32 * sample size. | 32 * sample size. |
33 */ | 33 */ |
34 SkBitmap* decodeRegion(int start_x, int start_y, int width, int height, | 34 SkBitmap* decodeRegion(int start_x, int start_y, int width, int height, |
35 int sampleSize, SkColorType prefColorType) override; | 35 int sampleSize, SkColorType prefColorType) override; |
36 | 36 |
| 37 bool conversionSupported(SkColorType colorType) override; |
| 38 |
37 private: | 39 private: |
38 | 40 |
39 SkAutoTDelete<SkCodec> fDecoder; | 41 SkAutoTDelete<SkCodec> fDecoder; |
40 | 42 |
41 typedef SkBitmapRegionDecoderInterface INHERITED; | 43 typedef SkBitmapRegionDecoderInterface INHERITED; |
42 | 44 |
43 }; | 45 }; |
OLD | NEW |