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

Unified Diff: runtime/platform/text_buffer.cc

Issue 1799933002: Ensure embedder timeline callbacks are called for service protocol requests (Closed) Base URL: git@github.com:dart-lang/sdk.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 | « runtime/platform/text_buffer.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/text_buffer.cc
diff --git a/runtime/platform/text_buffer.cc b/runtime/platform/text_buffer.cc
index b9c6ac7515bee735dc004f2deb3b71d75e462ec3..23e1dcf6aeb38e6f278562b16ad86df8311ccda9 100644
--- a/runtime/platform/text_buffer.cc
+++ b/runtime/platform/text_buffer.cc
@@ -48,6 +48,13 @@ void TextBuffer::AddChar(char ch) {
}
+void TextBuffer::AddRaw(const uint8_t* buffer,
+ intptr_t buffer_length) {
+ for (intptr_t i = 0; i < buffer_length; i++) {
rmacnak 2016/03/14 23:08:11 Why not EnsureCapacity(buffer_length) memmov(&buf
Cutch 2016/03/15 14:58:17 Done.
+ AddChar(buffer[i]);
+ }
+}
+
intptr_t TextBuffer::Printf(const char* format, ...) {
va_list args;
va_start(args, format);
« no previous file with comments | « runtime/platform/text_buffer.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698