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