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

Unified Diff: include/core/SkStream.h

Issue 1844343004: SkWStream::writeText inlined. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « bench/PDFBench.cpp ('k') | src/core/SkStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkStream.h
diff --git a/include/core/SkStream.h b/include/core/SkStream.h
index a6a62c42ba1b7dd9c08264eed0417a40fa0d8264..4bfaeda58793d7b25aa58319a52c8cc92503a14e 100644
--- a/include/core/SkStream.h
+++ b/include/core/SkStream.h
@@ -200,7 +200,10 @@ public:
bool write16(U16CPU);
bool write32(uint32_t);
- bool writeText(const char text[]);
+ bool writeText(const char text[]) {
+ SkASSERT(text);
+ return this->write(text, strlen(text));
bungeman-skia 2016/04/01 15:19:18 The win here appears to be mostly that the compile
+ }
bool writeDecAsText(int32_t);
bool writeBigDecAsText(int64_t, int minDigits = 0);
bool writeHexAsText(uint32_t, int minDigits = 0);
« no previous file with comments | « bench/PDFBench.cpp ('k') | src/core/SkStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698