chromium/components/viz/service/display/overlay_candidate.cc

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

#include "components/viz/service/display/overlay_candidate.h"

#include "cc/base/math_util.h"
#include "components/viz/common/quads/shared_quad_state.h"
#include "components/viz/common/quads/solid_color_draw_quad.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "components/viz/common/quads/yuv_video_draw_quad.h"
#include "components/viz/service/debugger/viz_debugger.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/overlay_transform_utils.h"
#include "ui/gfx/video_types.h"

namespace viz {

// There is a bug in |base::optional| which causes the 'value_or' function to
// capture parameters (even constexpr parameters) as a reference.
constexpr uint32_t OverlayCandidate::kInvalidDamageIndex;
constexpr OverlayCandidate::TrackingId OverlayCandidate::kDefaultTrackingId;

OverlayCandidate::OverlayCandidate() = default;

OverlayCandidate::OverlayCandidate(const OverlayCandidate& other) = default;

OverlayCandidate::~OverlayCandidate() = default;

// static
bool OverlayCandidate::IsInvisibleQuad(const DrawQuad* quad) {}

// static
bool OverlayCandidate::QuadHasRoundedDisplayMasks(const DrawQuad* quad) {}

// static
void OverlayCandidate::ApplyClip(OverlayCandidate& candidate,
                                 const gfx::RectF& clip_rect) {}

// static
bool OverlayCandidate::RequiresOverlay(const DrawQuad* quad) {}

// static
gfx::RectF OverlayCandidate::DisplayRectInTargetSpace(
    const OverlayCandidate& candidate) {}

}  // namespace viz