blob: b0254c1f551fbb97b7b6bc4b7c6a2d88feabf42f [file] [log] [blame]
halcanary1b5c6042015-02-18 11:29:56 -08001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef SkPDFBitmap_DEFINED
8#define SkPDFBitmap_DEFINED
9
10#include "SkPDFTypes.h"
halcanary1b5c6042015-02-18 11:29:56 -080011
halcanary7a14b312015-10-01 07:28:13 -070012class SkImage;
halcanary792c80f2015-02-20 07:21:05 -080013
halcanary1b5c6042015-02-18 11:29:56 -080014/**
halcanary7a14b312015-10-01 07:28:13 -070015 * SkPDFBitmap wraps a SkImage and serializes it as an image Xobject.
halcanary1b5c6042015-02-18 11:29:56 -080016 * It is designed to use a minimal amout of memory, aside from refing
halcanary7a14b312015-10-01 07:28:13 -070017 * the image, and its emitObject() does not cache any data.
halcanary1b5c6042015-02-18 11:29:56 -080018 */
halcanary712fdf72015-12-10 08:59:43 -080019SkPDFObject* SkPDFCreateBitmapObject(const SkImage*, SkPixelSerializer*);
halcanary1b5c6042015-02-18 11:29:56 -080020
21#endif // SkPDFBitmap_DEFINED