#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "ui/display/mojom/display_snapshot.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 "ui/display/mojom/display_snapshot.mojom-params-data.h"
#include "ui/display/mojom/display_snapshot.mojom-shared-message-ids.h"
#include "ui/display/mojom/display_snapshot.mojom-blink-import-headers.h"
#include "ui/display/mojom/display_snapshot.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace display::mojom::blink {
DisplaySnapshotColorInfo::DisplaySnapshotColorInfo()
: … { … }
DisplaySnapshotColorInfo::DisplaySnapshotColorInfo(
const ::gfx::ColorSpace& color_space_in,
const ::SkColorSpacePrimaries& edid_primaries_in,
float edid_gamma_in,
const std::optional<::gfx::HDRStaticMetadata>& hdr_static_metadata_in,
bool supports_color_temperature_adjustment_in,
uint32_t bits_per_channel_in)
: … { … }
DisplaySnapshotColorInfo::~DisplaySnapshotColorInfo() = default;
void DisplaySnapshotColorInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DisplaySnapshotColorInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DisplaySnapshot::DisplaySnapshot()
: … { … }
DisplaySnapshot::DisplaySnapshot(
int64_t display_id_in,
int64_t port_display_id_in,
int64_t edid_display_id_in,
uint16_t connector_index_in,
const ::gfx::Point& origin_in,
const ::gfx::Size& physical_size_in,
::display::mojom::blink::DisplayConnectionType type_in,
uint64_t base_connector_id_in,
WTF::Vector<uint64_t> path_topology_in,
bool is_aspect_preserving_scaling_in,
bool has_overscan_in,
::display::mojom::blink::PrivacyScreenState privacy_screen_state_in,
bool has_content_protection_key_in,
DisplaySnapshotColorInfoPtr color_info_in,
const WTF::String& display_name_in,
const ::base::FilePath& sys_path_in,
WTF::Vector<::display::mojom::blink::DisplayModePtr> modes_in,
::display::mojom::blink::PanelOrientation panel_orientation_in,
WTF::Vector<uint8_t> edid_in,
uint64_t current_mode_index_in,
bool has_current_mode_in,
uint64_t native_mode_index_in,
bool has_native_mode_in,
int64_t product_code_in,
int32_t year_of_manufacture_in,
const ::gfx::Size& maximum_cursor_size_in,
::display::mojom::blink::VariableRefreshRateState variable_refresh_rate_state_in)
: … { … }
DisplaySnapshot::~DisplaySnapshot() = default;
void DisplaySnapshot::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DisplaySnapshot::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::display::mojom::blink::DisplaySnapshotColorInfo::DataView, ::display::mojom::blink::DisplaySnapshotColorInfoPtr>::Read(
::display::mojom::blink::DisplaySnapshotColorInfo::DataView input,
::display::mojom::blink::DisplaySnapshotColorInfoPtr* output) { … }
bool StructTraits<::display::mojom::blink::DisplaySnapshot::DataView, ::display::mojom::blink::DisplaySnapshotPtr>::Read(
::display::mojom::blink::DisplaySnapshot::DataView input,
::display::mojom::blink::DisplaySnapshotPtr* output) { … }
}
namespace display::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif