aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/tools/PageCachingDocument.h
blob: 19be1ae6197cad23b1a23c5a8fd805b8e733b146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef PageCachingDocument_DEFINED
#define PageCachingDocument_DEFINED

#include "SkScalar.h"

class SkBitmap;
class SkData;
class SkDocument;
class SkWStream;

SkDocument* CreatePageCachingDocument(
    SkWStream* stream,
    void (*done)(SkWStream*, bool) = NULL,
    SkData* (*encoder)(size_t*, const SkBitmap&) = NULL,
    SkScalar rasterDpi = 72.0);
#endif  // PageCachingDocument_DEFINED