OLD | NEW |
---|---|
(Empty) | |
1 | |
2 /* | |
3 * Copyright 2013 Google Inc. | |
4 * | |
5 * Use of this source code is governed by a BSD-style license that can be | |
6 * found in the LICENSE file. | |
7 */ | |
8 | |
9 | |
10 #ifndef SkPDFCallbacks_DEFINED | |
11 #define SkPDFCallbacks_DEFINED | |
12 | |
13 class SkBitmap; | |
14 class SkIRect; | |
15 class SkWStream; | |
16 | |
17 /** EncodeToDCTStream sets the DCTEncoder for images, to encode a bitmap as JPEG (DCT). | |
18 * Result of encodings are cached, if the encoder changes the | |
19 * behaivor dynamically and an image is added to a second catalog, | |
20 * we will likely use the result of the first encoding call. | |
21 * By returning false from the encoder function, the encoder result is not used . | |
22 * Callers might not want to encode small images, as the time spent | |
23 * encoding and decoding might not be worth the space savings, if any at all. | |
24 */ | |
25 | |
26 typedef bool (*EncodeToDCTStream)(SkWStream* stream, const SkBitmap& bitmap, con st SkIRect& rect); | |
scroggo
2013/09/26 22:05:55
Should these be inside a namespace?
| |
27 // TODO(edisonn): add here the ones about font, shadow render preferences, | |
28 // how to export unsupported features, ... | |
29 | |
30 #endif // SkPDFCallbacks_DEFINED | |
OLD | NEW |