chromium/out/Default/gen/services/viz/public/mojom/compositing/compositor_frame_metadata.mojom-blink.cc

// services/viz/public/mojom/compositing/compositor_frame_metadata.mojom-blink.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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-blink.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-blink-import-headers.h"
#include "services/viz/public/mojom/compositing/compositor_frame_metadata.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
#include "services/viz/public/cpp/compositing/begin_frame_args_mojom_traits.h"


namespace viz::mojom::blink {
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,
    WTF::Vector<::ui::LatencyInfo> latency_info_in,
    WTF::Vector<::viz::mojom::blink::SurfaceRangePtr> referenced_surfaces_in,
    ::viz::mojom::blink::FrameDeadlinePtr deadline_in,
    WTF::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::mojom::blink::OverlayTransform display_transform_hint_in,
    ::std::unique_ptr<::gfx::DelegatedInkMetadata> delegated_ink_metadata_in,
    WTF::Vector<::viz::mojom::blink::CompositorFrameTransitionDirectivePtr> 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,
    WTF::Vector<::viz::mojom::blink::OffsetTagDefinitionPtr> offset_tag_definitions_in,
    WTF::Vector<::viz::mojom::blink::OffsetTagValuePtr> offset_tag_values_in,
    ::viz::mojom::blink::FrameIntervalInputsPtr 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) {}


}  // viz::mojom::blink


namespace mojo {


// static
bool StructTraits<::viz::mojom::blink::CompositorFrameMetadata::DataView, ::viz::mojom::blink::CompositorFrameMetadataPtr>::Read(
    ::viz::mojom::blink::CompositorFrameMetadata::DataView input,
    ::viz::mojom::blink::CompositorFrameMetadataPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace viz::mojom::blink {




}  // viz::mojom::blink


#if defined(__clang__)
#pragma clang diagnostic pop
#endif