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

Side by Side Diff: include/pdf/SkPDFCallbacks.h

Issue 24811002: Update the SkDocument interface to allow for 1) abort won't emit pdf, 2) close can report success/f… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698