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

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

Issue 944643002: PDF: Now threadsafe! (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: formatting Created 5 years, 10 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFImage_DEFINED 10 #ifndef SkPDFImage_DEFINED
(...skipping 10 matching lines...) Expand all
21 class SkPDFCatalog; 21 class SkPDFCatalog;
22 struct SkIRect; 22 struct SkIRect;
23 23
24 /** 24 /**
25 * Return the mose efficient availible encoding of the given bitmap. 25 * Return the mose efficient availible encoding of the given bitmap.
26 * 26 *
27 * If the bitmap has encoded JPEG data and that data can be embedded 27 * If the bitmap has encoded JPEG data and that data can be embedded
28 * into the PDF output stream directly, use that. Otherwise, fall 28 * into the PDF output stream directly, use that. Otherwise, fall
29 * back on SkPDFImage::CreateImage. 29 * back on SkPDFImage::CreateImage.
30 */ 30 */
31 SkPDFObject* SkPDFCreateImageObject( 31 SkPDFObject* SkPDFCreateImageObject(SkPDFCanon* canon,
32 const SkBitmap&, const SkIRect& subset, SkPicture::EncodeBitmap); 32 const SkBitmap&,
33 const SkIRect& subset,
34 SkPicture::EncodeBitmap);
33 35
34 /** \class SkPDFImage 36 /** \class SkPDFImage
35 37
36 An image XObject. 38 An image XObject.
37 */ 39 */
38 40
39 // We could play the same trick here as is done in SkPDFGraphicState, storing 41 // We could play the same trick here as is done in SkPDFGraphicState, storing
40 // a copy of the Bitmap object (not the pixels), the pixel generation number, 42 // a copy of the Bitmap object (not the pixels), the pixel generation number,
41 // and settings used from the paint to canonicalize image objects. 43 // and settings used from the paint to canonicalize image objects.
42 class SkPDFImage : public SkPDFStream { 44 class SkPDFImage : public SkPDFStream {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 SkPDFImage(SkPDFImage& pdfImage); 91 SkPDFImage(SkPDFImage& pdfImage);
90 92
91 // Populate the stream dictionary. This method returns false if 93 // Populate the stream dictionary. This method returns false if
92 // fSubstitute should be used. 94 // fSubstitute should be used.
93 virtual bool populate(SkPDFCatalog* catalog); 95 virtual bool populate(SkPDFCatalog* catalog);
94 96
95 typedef SkPDFStream INHERITED; 97 typedef SkPDFStream INHERITED;
96 }; 98 };
97 99
98 #endif 100 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698