blob: 85b032ce906e4f97ba08f44f7d1afe92a61ac27c [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/output/renderer_settings.h"
#include <limits>
#include "base/logging.h"
#include "cc/resources/platform_color.h"
namespace cc {
RendererSettings::RendererSettings()
: preferred_tile_format(PlatformColor::BestTextureFormat()) {}
RendererSettings::RendererSettings(const RendererSettings& other) = default;
RendererSettings::~RendererSettings() {
}
bool RendererSettings::operator==(const RendererSettings& other) const {
return allow_antialiasing == other.allow_antialiasing &&
force_antialiasing == other.force_antialiasing &&
force_blending_with_shaders == other.force_blending_with_shaders &&
partial_swap_enabled == other.partial_swap_enabled &&
finish_rendering_on_resize == other.finish_rendering_on_resize &&
should_clear_root_render_pass == other.should_clear_root_render_pass &&
disable_display_vsync == other.disable_display_vsync &&
release_overlay_resources_after_gpu_query ==
other.release_overlay_resources_after_gpu_query &&
gl_composited_texture_quad_border ==
other.gl_composited_texture_quad_border &&
show_overdraw_feedback == other.show_overdraw_feedback &&
enable_color_correct_rendering ==
other.enable_color_correct_rendering &&
refresh_rate == other.refresh_rate &&
highp_threshold_min == other.highp_threshold_min &&
texture_id_allocation_chunk_size ==
other.texture_id_allocation_chunk_size &&
use_gpu_memory_buffer_resources ==
other.use_gpu_memory_buffer_resources &&
preferred_tile_format == other.preferred_tile_format &&
buffer_to_texture_target_map == other.buffer_to_texture_target_map;
}
} // namespace cc