#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/viz/public/mojom/compositing/quads.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "services/viz/public/mojom/compositing/quads.mojom-params-data.h"
#include "services/viz/public/mojom/compositing/quads.mojom-shared-message-ids.h"
#include "services/viz/public/mojom/compositing/quads.mojom-import-headers.h"
#include "services/viz/public/mojom/compositing/quads.mojom-test-utils.h"
namespace viz::mojom {
RoundedDisplayMasksInfo::RoundedDisplayMasksInfo()
: … { … }
RoundedDisplayMasksInfo::RoundedDisplayMasksInfo(
bool is_horizontally_positioned_in,
std::vector<uint8_t> radii_in)
: … { … }
RoundedDisplayMasksInfo::~RoundedDisplayMasksInfo() = default;
void RoundedDisplayMasksInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RoundedDisplayMasksInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DebugBorderQuadState::DebugBorderQuadState()
: … { … }
DebugBorderQuadState::DebugBorderQuadState(
const ::SkColor4f& color_in,
int32_t width_in)
: … { … }
DebugBorderQuadState::~DebugBorderQuadState() = default;
void DebugBorderQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DebugBorderQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CompositorRenderPassQuadState::CompositorRenderPassQuadState()
: … { … }
CompositorRenderPassQuadState::CompositorRenderPassQuadState(
const ::viz::CompositorRenderPassId& render_pass_id_in,
const ::viz::ResourceId& mask_resource_id_in,
const ::gfx::RectF& mask_uv_rect_in,
const ::gfx::Size& mask_texture_size_in,
const ::gfx::Vector2dF& filters_scale_in,
const ::gfx::PointF& filters_origin_in,
const ::gfx::RectF& tex_coord_rect_in,
bool force_anti_aliasing_off_in,
float backdrop_filter_quality_in,
bool intersects_damage_under_in)
: … { … }
CompositorRenderPassQuadState::~CompositorRenderPassQuadState() = default;
void CompositorRenderPassQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CompositorRenderPassQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SolidColorQuadState::SolidColorQuadState()
: … { … }
SolidColorQuadState::SolidColorQuadState(
const ::SkColor4f& color_in,
bool force_anti_aliasing_off_in)
: … { … }
SolidColorQuadState::~SolidColorQuadState() = default;
void SolidColorQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SolidColorQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SurfaceQuadState::SurfaceQuadState()
: … { … }
SurfaceQuadState::SurfaceQuadState(
const ::viz::SurfaceRange& surface_range_in,
const ::SkColor4f& default_background_color_in,
bool stretch_content_to_fill_bounds_in,
bool is_reflection_in,
bool allow_merge_in)
: … { … }
SurfaceQuadState::~SurfaceQuadState() = default;
void SurfaceQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SurfaceQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TextureQuadState::TextureQuadState()
: … { … }
TextureQuadState::TextureQuadState(
const ::viz::ResourceId& resource_id_in,
const ::gfx::Size& resource_size_in_pixels_in,
bool premultiplied_alpha_in,
const ::gfx::PointF& uv_top_left_in,
const ::gfx::PointF& uv_bottom_right_in,
const ::SkColor4f& background_color_in,
bool y_flipped_in,
bool nearest_neighbor_in,
bool secure_output_only_in,
bool is_stream_video_in,
bool is_video_frame_in,
bool force_rgbx_in,
::gfx::ProtectedVideoType protected_video_type_in,
const std::optional<::gfx::Rect>& damage_rect_in,
OverlayPriority overlay_priority_hint_in,
RoundedDisplayMasksInfoPtr rounded_display_masks_info_in)
: … { … }
TextureQuadState::~TextureQuadState() = default;
void TextureQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool TextureQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TileQuadState::TileQuadState()
: … { … }
TileQuadState::TileQuadState(
const ::gfx::RectF& tex_coord_rect_in,
const ::gfx::Size& texture_size_in,
bool is_premultiplied_in,
const ::viz::ResourceId& resource_id_in,
bool nearest_neighbor_in,
bool force_anti_aliasing_off_in)
: … { … }
TileQuadState::~TileQuadState() = default;
void TileQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool TileQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
YUVVideoQuadState::YUVVideoQuadState()
: … { … }
YUVVideoQuadState::YUVVideoQuadState(
const ::gfx::Size& coded_size_in,
const ::gfx::Rect& video_visible_rect_in,
uint8_t u_scale_in,
uint8_t v_scale_in,
const ::viz::ResourceId& y_plane_resource_id_in,
const ::viz::ResourceId& u_plane_resource_id_in,
const ::viz::ResourceId& v_plane_resource_id_in,
const ::viz::ResourceId& a_plane_resource_id_in,
uint32_t bits_per_channel_in,
const ::gfx::ColorSpace& video_color_space_in,
::gfx::ProtectedVideoType protected_video_type_in,
const ::gfx::HDRMetadata& hdr_metadata_in,
const std::optional<::gfx::Rect>& damage_rect_in)
: … { … }
YUVVideoQuadState::~YUVVideoQuadState() = default;
void YUVVideoQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool YUVVideoQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
VideoHoleQuadState::VideoHoleQuadState()
: … { … }
VideoHoleQuadState::VideoHoleQuadState(
const ::base::UnguessableToken& overlay_plane_id_in)
: … { … }
VideoHoleQuadState::~VideoHoleQuadState() = default;
void VideoHoleQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool VideoHoleQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SharedElementQuadState::SharedElementQuadState()
: … { … }
SharedElementQuadState::SharedElementQuadState(
const ::viz::ViewTransitionElementResourceId& resource_id_in)
: … { … }
SharedElementQuadState::~SharedElementQuadState() = default;
void SharedElementQuadState::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SharedElementQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DrawQuad::DrawQuad()
: … { … }
DrawQuad::DrawQuad(
const ::gfx::Rect& rect_in,
const ::gfx::Rect& visible_rect_in,
bool needs_blending_in,
const std::optional<::viz::SharedQuadState>& sqs_in,
DrawQuadStatePtr draw_quad_state_in)
: … { … }
DrawQuad::~DrawQuad() = default;
void DrawQuad::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DrawQuad::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DrawQuadState::DrawQuadState() : … { … }
DrawQuadState::~DrawQuadState() { … }
void DrawQuadState::set_debug_border_quad_state(
DebugBorderQuadStatePtr debug_border_quad_state) { … }
void DrawQuadState::set_render_pass_quad_state(
CompositorRenderPassQuadStatePtr render_pass_quad_state) { … }
void DrawQuadState::set_solid_color_quad_state(
SolidColorQuadStatePtr solid_color_quad_state) { … }
void DrawQuadState::set_surface_quad_state(
SurfaceQuadStatePtr surface_quad_state) { … }
void DrawQuadState::set_texture_quad_state(
TextureQuadStatePtr texture_quad_state) { … }
void DrawQuadState::set_tile_quad_state(
TileQuadStatePtr tile_quad_state) { … }
void DrawQuadState::set_yuv_video_quad_state(
YUVVideoQuadStatePtr yuv_video_quad_state) { … }
void DrawQuadState::set_video_hole_quad_state(
VideoHoleQuadStatePtr video_hole_quad_state) { … }
void DrawQuadState::set_shared_element_quad_state(
SharedElementQuadStatePtr shared_element_quad_state) { … }
void DrawQuadState::DestroyActive() { … }
bool DrawQuadState::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::viz::mojom::RoundedDisplayMasksInfo::DataView, ::viz::mojom::RoundedDisplayMasksInfoPtr>::Read(
::viz::mojom::RoundedDisplayMasksInfo::DataView input,
::viz::mojom::RoundedDisplayMasksInfoPtr* output) { … }
bool StructTraits<::viz::mojom::DebugBorderQuadState::DataView, ::viz::mojom::DebugBorderQuadStatePtr>::Read(
::viz::mojom::DebugBorderQuadState::DataView input,
::viz::mojom::DebugBorderQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::CompositorRenderPassQuadState::DataView, ::viz::mojom::CompositorRenderPassQuadStatePtr>::Read(
::viz::mojom::CompositorRenderPassQuadState::DataView input,
::viz::mojom::CompositorRenderPassQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::SolidColorQuadState::DataView, ::viz::mojom::SolidColorQuadStatePtr>::Read(
::viz::mojom::SolidColorQuadState::DataView input,
::viz::mojom::SolidColorQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::SurfaceQuadState::DataView, ::viz::mojom::SurfaceQuadStatePtr>::Read(
::viz::mojom::SurfaceQuadState::DataView input,
::viz::mojom::SurfaceQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::TextureQuadState::DataView, ::viz::mojom::TextureQuadStatePtr>::Read(
::viz::mojom::TextureQuadState::DataView input,
::viz::mojom::TextureQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::TileQuadState::DataView, ::viz::mojom::TileQuadStatePtr>::Read(
::viz::mojom::TileQuadState::DataView input,
::viz::mojom::TileQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::YUVVideoQuadState::DataView, ::viz::mojom::YUVVideoQuadStatePtr>::Read(
::viz::mojom::YUVVideoQuadState::DataView input,
::viz::mojom::YUVVideoQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::VideoHoleQuadState::DataView, ::viz::mojom::VideoHoleQuadStatePtr>::Read(
::viz::mojom::VideoHoleQuadState::DataView input,
::viz::mojom::VideoHoleQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::SharedElementQuadState::DataView, ::viz::mojom::SharedElementQuadStatePtr>::Read(
::viz::mojom::SharedElementQuadState::DataView input,
::viz::mojom::SharedElementQuadStatePtr* output) { … }
bool StructTraits<::viz::mojom::DrawQuad::DataView, ::viz::mojom::DrawQuadPtr>::Read(
::viz::mojom::DrawQuad::DataView input,
::viz::mojom::DrawQuadPtr* output) { … }
bool UnionTraits<::viz::mojom::DrawQuadState::DataView, ::viz::mojom::DrawQuadStatePtr>::Read(
::viz::mojom::DrawQuadState::DataView input,
::viz::mojom::DrawQuadStatePtr* output) { … }
}
namespace viz::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif