#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/viz/public/mojom/compositing/compositor_frame_metadata.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/compositor_frame_metadata.mojom-params-data.h"
#include "services/viz/public/mojom/compositing/compositor_frame_metadata.mojom-shared-message-ids.h"
#include "services/viz/public/mojom/compositing/compositor_frame_metadata.mojom-import-headers.h"
#include "services/viz/public/mojom/compositing/compositor_frame_metadata.mojom-test-utils.h"
#include "services/viz/public/cpp/compositing/begin_frame_args_mojom_traits.h"
namespace viz::mojom {
CompositorFrameMetadata::CompositorFrameMetadata()
: … { … }
CompositorFrameMetadata::CompositorFrameMetadata(
float device_scale_factor_in,
const ::gfx::PointF& root_scroll_offset_in,
float page_scale_factor_in,
const ::gfx::SizeF& scrollable_viewport_size_in,
::gfx::ContentColorUsage content_color_usage_in,
bool may_contain_video_in,
bool may_throttle_if_undrawn_frames_in,
bool is_handling_interaction_in,
const ::SkColor4f& root_background_color_in,
std::vector<::ui::LatencyInfo> latency_info_in,
std::vector<::viz::SurfaceRange> referenced_surfaces_in,
const ::viz::FrameDeadline& deadline_in,
std::vector<::viz::SurfaceId> activation_dependencies_in,
const ::viz::BeginFrameAck& begin_frame_ack_in,
uint32_t frame_token_in,
bool send_frame_token_to_embedder_in,
bool top_controls_visible_height_set_in,
float top_controls_visible_height_in,
float min_page_scale_factor_in,
::gfx::OverlayTransform display_transform_hint_in,
::std::unique_ptr<::gfx::DelegatedInkMetadata> delegated_ink_metadata_in,
std::vector<::viz::CompositorFrameTransitionDirective> transition_directives_in,
const ::viz::RegionCaptureBounds& capture_bounds_in,
bool has_shared_element_resources_in,
const std::optional<::blink::SameDocNavigationScreenshotDestinationToken>& screenshot_destination_in,
bool is_software_in,
std::vector<::viz::mojom::OffsetTagDefinitionPtr> offset_tag_definitions_in,
std::vector<::viz::OffsetTagValue> offset_tag_values_in,
const ::viz::FrameIntervalInputs& frame_interval_inputs_in)
: … { … }
CompositorFrameMetadata::~CompositorFrameMetadata() = default;
void CompositorFrameMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CompositorFrameMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::viz::mojom::CompositorFrameMetadata::DataView, ::viz::mojom::CompositorFrameMetadataPtr>::Read(
::viz::mojom::CompositorFrameMetadata::DataView input,
::viz::mojom::CompositorFrameMetadataPtr* output) { … }
}
namespace viz::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif