summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/skia/tools/LazyDecodeBitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/tools/LazyDecodeBitmap.h')
-rw-r--r--chromium/third_party/skia/tools/LazyDecodeBitmap.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/third_party/skia/tools/LazyDecodeBitmap.h b/chromium/third_party/skia/tools/LazyDecodeBitmap.h
new file mode 100644
index 00000000000..ecceb94f7ed
--- /dev/null
+++ b/chromium/third_party/skia/tools/LazyDecodeBitmap.h
@@ -0,0 +1,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