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

Unified Diff: src/core/SkReadBuffer.h

Issue 1737543002: Use SkPicture's InstallPixelRefProc to decode SkImages in an skp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | src/core/SkReadBuffer.cpp » ('j') | src/core/SkReadBuffer.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkReadBuffer.h
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h
index 3d6dd362acccceb5e93c5f72d46eafbba4a24526..07bdf3eb52145a1ec395ac21557207c9d50b8d6c 100644
--- a/src/core/SkReadBuffer.h
+++ b/src/core/SkReadBuffer.h
@@ -224,6 +224,13 @@ protected:
private:
bool readArray(void* value, size_t size, size_t elementSize);
+ /**
+ * Try to use fBitmapDecoder to decode the data. Returns true on success and false
+ * on failure.
+ */
+ bool decodeBitmap(const void* data, size_t length, SkBitmap* bitmap,
+ const SkIRect& subset);
+
uint32_t fFlags;
int fVersion;
« no previous file with comments | « no previous file | src/core/SkReadBuffer.cpp » ('j') | src/core/SkReadBuffer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698