skia2/experimental/tools/PageCachingDocument.h
2014-12-02 14:01:46 -08:00

23 lines
539 B
C++

/*
* 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