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

// Copyright 2011 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/common/quads/compositor_render_pass.h"

#include <stddef.h>

#include <algorithm>
#include <memory>

#include "base/memory/ptr_util.h"
#include "base/numerics/safe_conversions.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/traced_value.h"
#include "base/values.h"
#include "cc/base/math_util.h"
#include "components/viz/common/quads/compositor_render_pass_draw_quad.h"
#include "components/viz/common/quads/debug_border_draw_quad.h"
#include "components/viz/common/quads/draw_quad.h"
#include "components/viz/common/quads/largest_draw_quad.h"
#include "components/viz/common/quads/picture_draw_quad.h"
#include "components/viz/common/quads/shared_element_draw_quad.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/surface_draw_quad.h"
#include "components/viz/common/quads/texture_draw_quad.h"
#include "components/viz/common/quads/tile_draw_quad.h"
#include "components/viz/common/quads/video_hole_draw_quad.h"
#include "components/viz/common/quads/yuv_video_draw_quad.h"
#include "components/viz/common/traced_value.h"

namespace viz {

std::unique_ptr<CompositorRenderPass> CompositorRenderPass::Create() {}

std::unique_ptr<CompositorRenderPass> CompositorRenderPass::Create(
    size_t num_layers) {}

std::unique_ptr<CompositorRenderPass> CompositorRenderPass::Create(
    size_t shared_quad_state_list_size,
    size_t quad_list_size) {}

CompositorRenderPass::CompositorRenderPass() = default;
CompositorRenderPass::CompositorRenderPass(size_t num_layers)
    :{}
CompositorRenderPass::CompositorRenderPass(size_t shared_quad_state_list_size,
                                           size_t quad_list_size)
    :{}

CompositorRenderPass::~CompositorRenderPass() {}

void CompositorRenderPass::SetNew(
    CompositorRenderPassId pass_id,
    const gfx::Rect& output_rect,
    const gfx::Rect& damage_rect,
    const gfx::Transform& transform_to_root_target) {}

void CompositorRenderPass::SetAll(
    CompositorRenderPassId pass_id,
    const gfx::Rect& output_rect,
    const gfx::Rect& damage_rect,
    const gfx::Transform& transform_to_root_target,
    const cc::FilterOperations& filters,
    const cc::FilterOperations& backdrop_filters,
    const std::optional<gfx::RRectF>& backdrop_filter_bounds,
    SubtreeCaptureId capture_id,
    gfx::Size subtree_capture_size,
    ViewTransitionElementResourceId resource_id,
    bool has_transparent_background,
    bool cache_render_pass,
    bool has_damage_from_contributing_content,
    bool generate_mipmap,
    bool per_quad_damage) {}

void CompositorRenderPass::AsValueInto(
    base::trace_event::TracedValue* value) const {}

CompositorRenderPassDrawQuad*
CompositorRenderPass::CopyFromAndAppendRenderPassDrawQuad(
    const CompositorRenderPassDrawQuad* quad,
    CompositorRenderPassId render_pass_id) {}

DrawQuad* CompositorRenderPass::CopyFromAndAppendDrawQuad(
    const DrawQuad* quad) {}

std::unique_ptr<CompositorRenderPass> CompositorRenderPass::DeepCopy() const {}

}  // namespace viz