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

Unified Diff: src/core/SkString.cpp

Issue 491673002: Initial refactor of shaderbuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | « include/gpu/GrEffect.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkString.cpp
diff --git a/src/core/SkString.cpp b/src/core/SkString.cpp
index 1e29dc71723bdb803e5d2d9cd7c9ac68be3fe55d..48459dbbd8ac69eabb6f2f72cbbf1c9ff862e7f5 100644
--- a/src/core/SkString.cpp
+++ b/src/core/SkString.cpp
@@ -583,6 +583,14 @@ void SkString::prependf(const char format[], ...) {
this->prepend(buffer, strlen(buffer));
}
+void SkString::prependVAList(const char format[], va_list args) {
+ char buffer[kBufferSize];
+ VSNPRINTF(buffer, kBufferSize, format, args);
+
+ this->prepend(buffer, strlen(buffer));
+}
+
+
///////////////////////////////////////////////////////////////////////////////
void SkString::remove(size_t offset, size_t length) {
« no previous file with comments | « include/gpu/GrEffect.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698