#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/viz/privileged/mojom/compositing/renderer_settings.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/privileged/mojom/compositing/renderer_settings.mojom-params-data.h"
#include "services/viz/privileged/mojom/compositing/renderer_settings.mojom-shared-message-ids.h"
#include "services/viz/privileged/mojom/compositing/renderer_settings.mojom-import-headers.h"
#include "services/viz/privileged/mojom/compositing/renderer_settings.mojom-test-utils.h"
namespace viz::mojom {
OcclusionCullerSettings::OcclusionCullerSettings()
: … { … }
OcclusionCullerSettings::OcclusionCullerSettings(
uint16_t quad_split_limit_in,
uint16_t maximum_occluder_complexity_in,
uint16_t minimum_fragments_reduced_in)
: … { … }
OcclusionCullerSettings::~OcclusionCullerSettings() = default;
size_t OcclusionCullerSettings::Hash(size_t seed) const { … }
void OcclusionCullerSettings::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool OcclusionCullerSettings::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RendererSettings::RendererSettings()
: … { … }
RendererSettings::RendererSettings(
bool allow_antialiasing_in,
bool force_antialiasing_in,
bool force_blending_with_shaders_in,
int32_t highp_threshold_min_in,
bool partial_swap_enabled_in,
bool release_overlay_resources_after_gpu_query_in,
bool should_clear_root_render_pass_in,
int32_t slow_down_compositing_scale_factor_in,
bool auto_resize_output_surface_in,
bool requires_alpha_channel_in,
OcclusionCullerSettingsPtr occlusion_culler_settings_in,
std::vector<::viz::mojom::OverlayStrategy> overlay_strategies_in)
: … { … }
RendererSettings::~RendererSettings() = default;
void RendererSettings::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RendererSettings::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DebugRendererSettings::DebugRendererSettings()
: … { … }
DebugRendererSettings::DebugRendererSettings(
bool tint_composited_content_in,
bool tint_composited_content_modulate_in,
bool show_overdraw_feedback_in,
bool show_dc_layer_debug_borders_in,
bool show_aggregated_damage_in)
: … { … }
DebugRendererSettings::~DebugRendererSettings() = default;
void DebugRendererSettings::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DebugRendererSettings::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::viz::mojom::OcclusionCullerSettings::DataView, ::viz::mojom::OcclusionCullerSettingsPtr>::Read(
::viz::mojom::OcclusionCullerSettings::DataView input,
::viz::mojom::OcclusionCullerSettingsPtr* output) { … }
bool StructTraits<::viz::mojom::RendererSettings::DataView, ::viz::mojom::RendererSettingsPtr>::Read(
::viz::mojom::RendererSettings::DataView input,
::viz::mojom::RendererSettingsPtr* output) { … }
bool StructTraits<::viz::mojom::DebugRendererSettings::DataView, ::viz::mojom::DebugRendererSettingsPtr>::Read(
::viz::mojom::DebugRendererSettings::DataView input,
::viz::mojom::DebugRendererSettingsPtr* output) { … }
}
namespace viz::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif