OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkPDFDevice.h" | 8 #include "SkPDFDevice.h" |
9 #include "SkAnnotationKeys.h" | 9 #include "SkAnnotationKeys.h" |
10 #include "SkBitmapDevice.h" | 10 #include "SkBitmapDevice.h" |
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkBitmap& bitmap) { | 2255 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkBitmap& bitmap) { |
2256 return SkSpecialImage::MakeFromRaster(bitmap.bounds(), bitmap); | 2256 return SkSpecialImage::MakeFromRaster(bitmap.bounds(), bitmap); |
2257 } | 2257 } |
2258 | 2258 |
2259 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkImage* image) { | 2259 sk_sp<SkSpecialImage> SkPDFDevice::makeSpecial(const SkImage* image) { |
2260 return SkSpecialImage::MakeFromImage(SkIRect::MakeWH(image->width(), image->
height()), | 2260 return SkSpecialImage::MakeFromImage(SkIRect::MakeWH(image->width(), image->
height()), |
2261 image->makeNonTextureImage()); | 2261 image->makeNonTextureImage()); |
2262 } | 2262 } |
2263 | 2263 |
2264 sk_sp<SkSpecialImage> SkPDFDevice::snapSpecial() { | 2264 sk_sp<SkSpecialImage> SkPDFDevice::snapSpecial() { |
2265 SkASSERT(false); | |
2266 return nullptr; | 2265 return nullptr; |
2267 } | 2266 } |
OLD | NEW |