#include "cc/layers/heads_up_display_layer.h"
#include <algorithm>
#include <utility>
#include <vector>
#include "base/trace_event/trace_event.h"
#include "cc/layers/heads_up_display_layer_impl.h"
#include "cc/trees/layer_tree_host.h"
#include "skia/ext/font_utils.h"
namespace cc {
scoped_refptr<HeadsUpDisplayLayer> HeadsUpDisplayLayer::Create() { … }
HeadsUpDisplayLayer::HeadsUpDisplayLayer()
: … { … }
HeadsUpDisplayLayer::~HeadsUpDisplayLayer() = default;
void HeadsUpDisplayLayer::SetLayerTreeHost(LayerTreeHost* host) { … }
void HeadsUpDisplayLayer::UpdateLocationAndSize(
const gfx::Size& device_viewport,
float device_scale_factor) { … }
bool HeadsUpDisplayLayer::HasDrawableContent() const { … }
std::unique_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
const std::vector<gfx::Rect>& HeadsUpDisplayLayer::LayoutShiftRects() const { … }
void HeadsUpDisplayLayer::SetLayoutShiftRects(
const std::vector<gfx::Rect>& rects) { … }
void HeadsUpDisplayLayer::UpdateWebVitalMetrics(
std::unique_ptr<WebVitalMetrics> web_vital_metrics) { … }
void HeadsUpDisplayLayer::PushPropertiesTo(
LayerImpl* layer,
const CommitState& commit_state,
const ThreadUnsafeCommitState& unsafe_state) { … }
}