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: include/core/SkFlattenableBuffers.h

Issue 15179008: Add buffer helper to read directly into SkString to avoid extra copying (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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 | include/core/SkPaintOptionsAndroid.h » ('j') | src/core/SkOrderedReadBuffer.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkFlattenableBuffers.h
diff --git a/include/core/SkFlattenableBuffers.h b/include/core/SkFlattenableBuffers.h
index f5b853c5ac478f6a0dac78563dd185ed5f1a9e5f..e5d8634ebd0a457487ab1a68e721f5ea4dd37bda 100644
--- a/include/core/SkFlattenableBuffers.h
+++ b/include/core/SkFlattenableBuffers.h
@@ -60,6 +60,7 @@ public:
virtual int32_t read32() = 0;
// strings -- the caller is responsible for freeing the string contents
+ virtual void readString(SkString&) = 0;
reed1 2013/05/20 13:42:47 Use * instead of & for mutable arguments
djsollen 2013/05/21 12:17:17 Done.
virtual char* readString() = 0;
virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) = 0;
« no previous file with comments | « no previous file | include/core/SkPaintOptionsAndroid.h » ('j') | src/core/SkOrderedReadBuffer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698