56799e2ee6
R=caryclark@google.com, scroggo@google.com Author: sglez@google.com Review URL: https://chromiumcodereview.appspot.com/19109002 git-svn-id: http://skia.googlecode.com/svn/trunk@10111 2bbb7eff-a529-9590-31e7-b0007b416f81
25 lines
483 B
C++
25 lines
483 B
C++
/*
|
|
* 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
|