#include <stdint.h>
#include "base/feature_list.h"
#include "base/trace_event/trace_event.h"
#include "skia/ext/event_tracer_impl.h"
#include "third_party/skia/include/utils/SkEventTracer.h"
namespace {
BASE_FEATURE(…);
}
namespace skia {
class SkChromiumEventTracer: public SkEventTracer { … };
const uint8_t*
SkChromiumEventTracer::getCategoryGroupEnabled(const char* name) { … }
const char* SkChromiumEventTracer::getCategoryGroupName(
const uint8_t* categoryEnabledFlag) { … }
SkEventTracer::Handle
SkChromiumEventTracer::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) { … }
void
SkChromiumEventTracer::updateTraceEventDuration(
const uint8_t* categoryEnabledFlag,
const char *name,
SkEventTracer::Handle handle) { … }
}
void InitSkiaEventTracer() { … }