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

Side by Side Diff: src/pdf/SkPDFBitmap.h

Issue 1829693002: SkPDF: draw{Image,Bitmap} always serializes early (Closed) Base URL: https://skia.googlesource.com/skia.git@r1823683005
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « src/pdf/SkBitmapKey.h ('k') | src/pdf/SkPDFBitmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef SkPDFBitmap_DEFINED 7 #ifndef SkPDFBitmap_DEFINED
8 #define SkPDFBitmap_DEFINED 8 #define SkPDFBitmap_DEFINED
9 9
10 #include "SkPDFTypes.h" 10 #include "SkPDFTypes.h"
11 11
12 class SkImage; 12 class SkImage;
13 13
14 /** 14 /**
15 * SkPDFBitmap wraps a SkImage and serializes it as an image Xobject. 15 * SkPDFBitmap wraps a SkImage and serializes it as an image Xobject.
16 * It is designed to use a minimal amout of memory, aside from refing 16 * It is designed to use a minimal amout of memory, aside from refing
17 * the image, and its emitObject() does not cache any data. 17 * the image, and its emitObject() does not cache any data.
18 */ 18 */
19 SkPDFObject* SkPDFCreateBitmapObject(const SkImage*, SkPixelSerializer*); 19 sk_sp<SkPDFObject> SkPDFCreateBitmapObject(sk_sp<SkImage>,
20 SkPixelSerializer*);
20 21
21 #endif // SkPDFBitmap_DEFINED 22 #endif // SkPDFBitmap_DEFINED
OLDNEW
« no previous file with comments | « src/pdf/SkBitmapKey.h ('k') | src/pdf/SkPDFBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698