#include "skia/ext/legacy_display_globals.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/no_destructor.h"
#include "base/strings/string_number_conversions.h"
#include "base/synchronization/lock.h"
#include "skia/ext/switches.h"
#include "ui/base/ui_base_features.h"
namespace skia {
namespace {
SkPixelGeometry g_pixel_geometry = …;
float g_text_contrast = …;
float g_text_gamma = …;
base::Lock& GetLock() { … }
void GetContrastAndGammaValuesFromCommandLine(float& out_contrast,
float& out_gamma) { … }
}
void LegacyDisplayGlobals::SetCachedParams(SkPixelGeometry pixel_geometry,
float text_contrast,
float text_gamma) { … }
SkSurfaceProps LegacyDisplayGlobals::GetSkSurfaceProps() { … }
SkSurfaceProps LegacyDisplayGlobals::GetSkSurfaceProps(uint32_t flags) { … }
SkSurfaceProps LegacyDisplayGlobals::ComputeSurfaceProps(
bool can_use_lcd_text) { … }
}