blob: bc34a17db5c0d9f8fea95d4235e20c46f604f88d [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/debug/rendering_stats.h"
#include <utility>
namespace cc {
RenderingStats::RenderingStats() = default;
RenderingStats::RenderingStats(RenderingStats&& other) = default;
RenderingStats& RenderingStats::operator=(RenderingStats&& other) = default;
RenderingStats::~RenderingStats() = default;
std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
RenderingStats::AsTraceableData() const {
std::unique_ptr<base::trace_event::TracedValue> record_data(
new base::trace_event::TracedValue());
record_data->SetInteger("visible_content_area", visible_content_area);
record_data->SetInteger("approximated_visible_content_area",
approximated_visible_content_area);
return std::move(record_data);
}
} // namespace cc