#include "cc/tiles/frame_viewer_instrumentation.h"
#include <memory>
#include <utility>
#include "components/viz/common/traced_value.h"
namespace cc {
namespace frame_viewer_instrumentation {
namespace {
constexpr const char kCategory[] = …);
const char kTileData[] = …;
const char kLayerId[] = …;
const char kTileId[] = …;
const char kTileResolution[] = …;
const char kSourceFrameNumber[] = …;
const char kAnalyzeTask[] = …;
const char kRasterTask[] = …;
std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TileDataAsValue(
const void* tile_id,
TileResolution tile_resolution,
int source_frame_number,
int layer_id) { … }
}
ScopedAnalyzeTask::ScopedAnalyzeTask(const void* tile_id,
TileResolution tile_resolution,
int source_frame_number,
int layer_id) { … }
ScopedAnalyzeTask::~ScopedAnalyzeTask() { … }
ScopedRasterTask::ScopedRasterTask(const void* tile_id,
TileResolution tile_resolution,
int source_frame_number,
int layer_id) { … }
ScopedRasterTask::~ScopedRasterTask() { … }
bool IsTracingLayerTreeSnapshots() { … }
}
}