Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: src/pdf/SkPDFDevice.cpp

Issue 199413013: add new readPixels with direct memory parameters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698