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