chromium/components/viz/common/quads/yuv_video_draw_quad.cc

// 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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/viz/common/quads/yuv_video_draw_quad.h"

#include "base/check.h"
#include "base/trace_event/traced_value.h"
#include "base/values.h"
#include "cc/base/math_util.h"
#include "ui/gfx/hdr_metadata.h"

namespace viz {

YUVVideoDrawQuad::YUVVideoDrawQuad() = default;

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

YUVVideoDrawQuad::~YUVVideoDrawQuad() = default;

void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
                              const gfx::Rect& rect,
                              const gfx::Rect& visible_rect,
                              bool needs_blending,
                              const gfx::Size& video_frame_coded_size,
                              const gfx::Rect& video_frame_visible_rect,
                              // Returned from VideFrame::SampleSize.
                              const gfx::Size& video_frame_uv_sample_size,
                              ResourceId y_plane_resource_id,
                              ResourceId u_plane_resource_id,
                              ResourceId v_plane_resource_id,
                              ResourceId a_plane_resource_id,
                              const gfx::ColorSpace& color_space,
                              uint32_t bits,
                              gfx::ProtectedVideoType video_type,
                              std::optional<gfx::HDRMetadata> metadata) {}

void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
                              const gfx::Rect& rect,
                              const gfx::Rect& visible_rect,
                              bool needs_blending,
                              const gfx::Size& video_frame_coded_size,
                              const gfx::Rect& video_frame_visible_rect,
                              // Returned from VideFrame::SampleSize.
                              const gfx::Size& video_frame_uv_sample_size,
                              ResourceId y_plane_resource_id,
                              ResourceId u_plane_resource_id,
                              ResourceId v_plane_resource_id,
                              ResourceId a_plane_resource_id,
                              const gfx::ColorSpace& color_space,
                              uint32_t bits,
                              gfx::ProtectedVideoType video_type,
                              std::optional<gfx::HDRMetadata> metadata) {}

const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(const DrawQuad* quad) {}

void YUVVideoDrawQuad::ExtendValue(
    base::trace_event::TracedValue* value) const {}

}  // namespace viz