chromium/third_party/skia/src/utils/SkEventTracer.cpp

/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "include/utils/SkEventTracer.h"

#include "include/private/base/SkOnce.h"

#include <stdlib.h>
#include <atomic>

class SkDefaultEventTracer : public SkEventTracer {};

// We prefer gUserTracer if it's been set, otherwise we fall back on a default tracer;
static std::atomic<SkEventTracer*> gUserTracer{};

bool SkEventTracer::SetInstance(SkEventTracer* tracer, bool leakTracer) {}

SkEventTracer* SkEventTracer::GetInstance() {}