| 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 "SkBitmapRegionCanvas.h" | 8 #include "SkBitmapRegionCanvas.h" |
| 9 #include "SkBitmapRegionDecoderPriv.h" | 9 #include "SkBitmapRegionDecoderPriv.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // SkCanvas does not draw to these color types. | 131 // SkCanvas does not draw to these color types. |
| 132 if (kIndex_8_SkColorType == colorType || kGray_8_SkColorType == colorType) { | 132 if (kIndex_8_SkColorType == colorType || kGray_8_SkColorType == colorType) { |
| 133 return false; | 133 return false; |
| 134 } | 134 } |
| 135 | 135 |
| 136 // FIXME: Call virtual function when it lands. | 136 // FIXME: Call virtual function when it lands. |
| 137 SkImageInfo info = SkImageInfo::Make(0, 0, colorType, fDecoder->getInfo().al
phaType(), | 137 SkImageInfo info = SkImageInfo::Make(0, 0, colorType, fDecoder->getInfo().al
phaType(), |
| 138 fDecoder->getInfo().profileType()); | 138 fDecoder->getInfo().profileType()); |
| 139 return conversion_possible(info, fDecoder->getInfo()); | 139 return conversion_possible(info, fDecoder->getInfo()); |
| 140 } | 140 } |
| OLD | NEW |