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 | 9 |
10 #include "SkAnnotation.h" | 10 #include "SkAnnotation.h" |
(...skipping 2292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2303 SkAutoTUnref<SkPDFImage> image( | 2303 SkAutoTUnref<SkPDFImage> image( |
2304 SkPDFImage::CreateImage(*bitmap, subset, fEncoder)); | 2304 SkPDFImage::CreateImage(*bitmap, subset, fEncoder)); |
2305 if (!image) { | 2305 if (!image) { |
2306 return; | 2306 return; |
2307 } | 2307 } |
2308 | 2308 |
2309 SkPDFUtils::DrawFormXObject(this->addXObjectResource(image.get()), | 2309 SkPDFUtils::DrawFormXObject(this->addXObjectResource(image.get()), |
2310 &content.entry()->fContent); | 2310 &content.entry()->fContent); |
2311 } | 2311 } |
2312 | 2312 |
| 2313 #ifdef SK_SUPPORT_LEGACY_READPIXELSCONFIG |
2313 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y, | 2314 bool SkPDFDevice::onReadPixels(const SkBitmap& bitmap, int x, int y, |
2314 SkCanvas::Config8888) { | 2315 SkCanvas::Config8888) { |
2315 return false; | 2316 return false; |
2316 } | 2317 } |
| 2318 #endif |
2317 | 2319 |
2318 bool SkPDFDevice::allowImageFilter(const SkImageFilter*) { | 2320 bool SkPDFDevice::allowImageFilter(const SkImageFilter*) { |
2319 return false; | 2321 return false; |
2320 } | 2322 } |
OLD | NEW |