#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 {
constexpr uint32_t OverlayCandidate::kInvalidDamageIndex;
constexpr OverlayCandidate::TrackingId OverlayCandidate::kDefaultTrackingId;
OverlayCandidate::OverlayCandidate() = default;
OverlayCandidate::OverlayCandidate(const OverlayCandidate& other) = default;
OverlayCandidate::~OverlayCandidate() = default;
bool OverlayCandidate::IsInvisibleQuad(const DrawQuad* quad) { … }
bool OverlayCandidate::QuadHasRoundedDisplayMasks(const DrawQuad* quad) { … }
void OverlayCandidate::ApplyClip(OverlayCandidate& candidate,
const gfx::RectF& clip_rect) { … }
bool OverlayCandidate::RequiresOverlay(const DrawQuad* quad) { … }
gfx::RectF OverlayCandidate::DisplayRectInTargetSpace(
const OverlayCandidate& candidate) { … }
}