Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tools/LazyDecodeBitmap.h

Issue 19109002: Add the lazy decoder from PictureFlags to SkImageDecoder (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Move LazyDecodeBitmap to its own cpp/h. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/LazyDecodeBitmap.h
diff --git a/tools/LazyDecodeBitmap.h b/tools/LazyDecodeBitmap.h
new file mode 100644
index 0000000000000000000000000000000000000000..ea7e35256a58e5d4f66c527071ec5b33c953fb75
--- /dev/null
+++ b/tools/LazyDecodeBitmap.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2006 The Android Open Source Project
scroggo 2013/07/15 18:02:41 2013
+ *
+ * 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"
+#include "SkBitmap.h"
scroggo 2013/07/15 18:02:41 SkBitmap can be forward-declared here, and include
sglez 2013/07/16 15:59:33 It compiles with just the forward declaration. Som
scroggo 2013/07/16 16:06:18 Although the forward declaration is enough to comp
+
scroggo 2013/07/15 18:02:41 Maybe add a comment here, explaining its purpose.
+bool LazyDecodeBitmap(const void* buffer, size_t size, SkBitmap* bitmap);
scroggo 2013/07/15 18:02:41 This should go inside a class or namespace. It cou
+
+#endif // LazyDecodeBitmap_DEFINED

Powered by Google App Engine
This is Rietveld 408576698