blob: ecceb94f7edbcc9a742dde6b6096a51be3d54d6e [file] [log] [blame]
commit-bot@chromium.org56799e22013-07-16 18:21:46 +00001/*
2 * Copyright 2013 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
8#ifndef LazyDecodeBitmap_DEFINED
9#define LazyDecodeBitmap_DEFINED
10
11#include "SkTypes.h"
12
13class SkBitmap;
14
15namespace sk_tools {
16
17/**
18 * Decode the image with DecodeMemoryToTarget but defer the process until it is needed.
19 */
20bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);
21
22}
23
24#endif // LazyDecodeBitmap_DEFINED