Add line breaks to make dehydrated files more merge-friendly.
Change-Id: Ica329608e5ee7f873a55dc27e6c14bb8734665a3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324118
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/sksl/SkSLStringStream.h b/src/sksl/SkSLStringStream.h
index 2cd65e9..3f78d53 100644
--- a/src/sksl/SkSLStringStream.h
+++ b/src/sksl/SkSLStringStream.h
@@ -29,6 +29,10 @@
fBuffer.append((const char*) s, size);
}
+ size_t bytesWritten() const {
+ return fBuffer.size();
+ }
+
const String& str() const {
return fBuffer;
}
@@ -62,6 +66,10 @@
fStream.write(s, size);
}
+ size_t bytesWritten() const {
+ return fStream.bytesWritten();
+ }
+
const String& str() const {
if (!fString.size()) {
sk_sp<SkData> data = fStream.detachAsData();