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

Unified Diff: src/core/SkBitmap.cpp

Issue 26702002: force readbuffer clients to use specialized readFoo for flattenables (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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: src/core/SkBitmap.cpp
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 128726cb63d9198477afd698e377c6ee02cef6ed..aa7b5a13f4e835217235b041a9ecfd448655692c 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -1615,7 +1615,7 @@ void SkBitmap::unflatten(SkFlattenableReadBuffer& buffer) {
switch (reftype) {
case SERIALIZE_PIXELTYPE_REF_DATA: {
size_t offset = buffer.readUInt();
- SkPixelRef* pr = buffer.readFlattenableT<SkPixelRef>();
+ SkPixelRef* pr = buffer.readPixelRef();
SkSafeUnref(this->setPixelRef(pr, offset));
break;
}

Powered by Google App Engine
This is Rietveld 408576698