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

#ifndef LazyDecodeBitmap_DEFINED
#define LazyDecodeBitmap_DEFINED

#include "SkTypes.h"

class SkBitmap;

namespace sk_tools {

/**
 * Decode the image with DecodeMemoryToTarget but defer the process until it is needed.
 */
bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);

}

#endif  // LazyDecodeBitmap_DEFINED