chromium/skia/ext/legacy_display_globals.cc

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

#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 =;

// Lock to prevent data races between setting and getting values. It is
// not ideal to have mismatched `SkSurfaceProps` between threads, but it
// is not catastrophic.
base::Lock& GetLock() {}

void GetContrastAndGammaValuesFromCommandLine(float& out_contrast,
                                              float& out_gamma) {}
}

// static
void LegacyDisplayGlobals::SetCachedParams(SkPixelGeometry pixel_geometry,
                                           float text_contrast,
                                           float text_gamma) {}

// static
SkSurfaceProps LegacyDisplayGlobals::GetSkSurfaceProps() {}

// static
SkSurfaceProps LegacyDisplayGlobals::GetSkSurfaceProps(uint32_t flags) {}

SkSurfaceProps LegacyDisplayGlobals::ComputeSurfaceProps(
    bool can_use_lcd_text) {}

}  // namespace skia