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

Unified Diff: skia/ext/trace_event.h

Issue 153063002: plumbing for skia trace events into Chrome's about://tracing framework (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
Index: skia/ext/trace_event.h
diff --git a/skia/ext/trace_event.h b/skia/ext/trace_event.h
new file mode 100644
index 0000000000000000000000000000000000000000..b93c0ca919e29ce647577b6e85e9d38d3b94260f
--- /dev/null
+++ b/skia/ext/trace_event.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKIA_EXT_TRACE_EVENT_H_
nduca 2014/02/04 01:15:19 unless skia/ folder has its own subclassing conven
humper 2014/02/04 19:58:08 Done.
+#define SKIA_EXT_TRACE_EVENT_H_
+
+#include "third_party/skia/include/utils/SkEventTracer.h"
+
+namespace skia {
+
+class SkChromiumEventTracer: public SkEventTracer {
+ virtual const uint8_t* getCategoryGroupEnabled(const char* name);
+ virtual const char* getCategoryGroupName(
+ const uint8_t* categoryEnabledFlag);
+ virtual SkEventTracer::Handle
+ addTraceEvent(char phase,
+ const uint8_t* categoryEnabledFlag,
+ const char* name,
+ uint64_t id,
+ int32_t numArgs,
+ const char** argNames,
+ const uint8_t* argTypes,
+ const uint64_t* argValues,
+ uint8_t flags);
+ virtual void
+ updateTraceEventDuration(const uint8_t* categoryEnabledFlag,
+ const char *name,
+ SkEventTracer::Handle handle);
+};
+
+} // namespace skia
+
+#endif // SKIA_EXT_TRACE_EVENT_H_

Powered by Google App Engine
This is Rietveld 408576698