chromium/third_party/blink/renderer/core/html/canvas/canvas_font_cache.cc

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

#include "third_party/blink/renderer/core/html/canvas/canvas_font_cache.h"

#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/html/canvas/html_canvas_element.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/font_family_names.h"
#include "third_party/blink/renderer/platform/fonts/font_cache.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/instrumentation/memory_pressure_listener.h"

namespace blink {

namespace {

const unsigned CanvasFontCacheMaxFonts =;
const unsigned CanvasFontCacheMaxFontsLowEnd =;
const unsigned CanvasFontCacheHardMaxFonts =;
const unsigned CanvasFontCacheHardMaxFontsLowEnd =;
const unsigned CanvasFontCacheHiddenMaxFonts =;
const int defaultFontSize =;

const ComputedStyle* CreateDefaultFontStyle(const Document& document) {}

}  // namespace

CanvasFontCache::CanvasFontCache(Document& document)
    :{}

CanvasFontCache::~CanvasFontCache() {}

unsigned CanvasFontCache::MaxFonts() {}

unsigned CanvasFontCache::HardMaxFonts() {}

bool CanvasFontCache::GetFontUsingDefaultStyle(HTMLCanvasElement& element,
                                               const String& font_string,
                                               Font& resolved_font) {}

MutableCSSPropertyValueSet* CanvasFontCache::ParseFont(
    const String& font_string) {}

void CanvasFontCache::DidProcessTask(const base::PendingTask& pending_task) {}

void CanvasFontCache::SchedulePruningIfNeeded() {}

bool CanvasFontCache::IsInCache(const String& font_string) const {}

unsigned int CanvasFontCache::GetCacheSize() const {}

void CanvasFontCache::PruneAll() {}

void CanvasFontCache::Trace(Visitor* visitor) const {}

void CanvasFontCache::Dispose() {}

}  // namespace blink