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

Unified Diff: src/core/SkData.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/SkData.cpp
diff --git a/src/core/SkData.cpp b/src/core/SkData.cpp
index a1b42b0c4f971b08a17f411b0af4a943b5b926c9..6b9b56be1725ffb2b252100c4be2602c3f6141d0 100644
--- a/src/core/SkData.cpp
+++ b/src/core/SkData.cpp
@@ -320,7 +320,7 @@ SkDataSet::SkDataSet(SkFlattenableReadBuffer& buffer) {
for (int i = 0; i < fCount; ++i) {
fPairs[i].fKey = keyStorage;
keyStorage += strlen(keyStorage) + 1;
- fPairs[i].fValue = buffer.readFlattenableT<SkData>();
+ fPairs[i].fValue = buffer.readData();
}
} else {
fKeySize = 0;

Powered by Google App Engine
This is Rietveld 408576698