Flutter Engine
The Flutter Engine
SkGraphics.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2006 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9
11#include "src/core/SkBlitMask.h"
12#include "src/core/SkBlitRow.h"
13#include "src/core/SkCpu.h"
15#include "src/core/SkMemset.h"
16#include "src/core/SkOpts.h"
21
23 // SkGraphics::Init() must be thread-safe and idempotent.
31}
32
33///////////////////////////////////////////////////////////////////////////////
34
38}
39
43 SkImageFilter_Base::PurgeCache();
44}
45
46///////////////////////////////////////////////////////////////////////////////
47
50}
51
52size_t SkGraphics::SetFontCacheLimit(size_t bytes) {
54}
55
58}
59
62}
63
66}
67
70}
71
75}
76
79}
80
81static int gTypefaceCacheCountLimit = 1024; // historical default value
82
85}
86
90 return prev;
91}
92
94
98 gSVGDecoderFactory = svgDecoderFactory;
99 return old;
100}
101
103 return gSVGDecoderFactory;
104}
int count
Definition: FontMgrTest.cpp:50
static float prev(float f)
static int gTypefaceCacheCountLimit
Definition: SkGraphics.cpp:81
static SkGraphics::OpenTypeSVGDecoderFactory gSVGDecoderFactory
Definition: SkGraphics.cpp:93
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
Definition: SkYUVMath.cpp:629
static void PurgePinnedFontCache()
Definition: SkGraphics.cpp:77
static void PurgeAllCaches()
Definition: SkGraphics.cpp:40
std::unique_ptr< SkOpenTypeSVGDecoder >(*)(const uint8_t *svg, size_t length) OpenTypeSVGDecoderFactory
Definition: SkGraphics.h:164
static int GetFontCacheCountLimit()
Definition: SkGraphics.cpp:60
static size_t GetFontCacheLimit()
Definition: SkGraphics.cpp:48
static void DumpMemoryStatistics(SkTraceMemoryDump *dump)
Definition: SkGraphics.cpp:35
static int SetTypefaceCacheCountLimit(int count)
Definition: SkGraphics.cpp:87
static OpenTypeSVGDecoderFactory SetOpenTypeSVGDecoderFactory(OpenTypeSVGDecoderFactory)
Definition: SkGraphics.cpp:96
static int GetFontCacheCountUsed()
Definition: SkGraphics.cpp:68
static size_t GetFontCacheUsed()
Definition: SkGraphics.cpp:56
static void Init()
Definition: SkGraphics.cpp:22
static void PurgeResourceCache()
static OpenTypeSVGDecoderFactory GetOpenTypeSVGDecoderFactory()
Definition: SkGraphics.cpp:102
static void PurgeFontCache()
Definition: SkGraphics.cpp:72
static size_t SetFontCacheLimit(size_t bytes)
Definition: SkGraphics.cpp:52
static int GetTypefaceCacheCountLimit()
Definition: SkGraphics.cpp:83
static int SetFontCacheCountLimit(int count)
Definition: SkGraphics.cpp:64
static void DumpMemoryStatistics(SkTraceMemoryDump *dump)
static void DumpMemoryStatistics(SkTraceMemoryDump *dump)
size_t getCacheSizeLimit() const SK_EXCLUDES(fLock)
size_t setCacheSizeLimit(size_t limit) SK_EXCLUDES(fLock)
int setCacheCountLimit(int limit) SK_EXCLUDES(fLock)
void purgePinned(size_t minBytesNeeded=0) SK_EXCLUDES(fLock)
void purgeAll() SK_EXCLUDES(fLock)
int getCacheCountLimit() const SK_EXCLUDES(fLock)
size_t getTotalMemoryUsed() const SK_EXCLUDES(fLock)
int getCacheCountUsed() const SK_EXCLUDES(fLock)
static SkStrikeCache * GlobalStrikeCache()
static void PurgeAll()
void Init()
Definition: SkOpts.cpp:66
void Init_BlitMask()
void Init_Swizzler()
void Init_BitmapProcState()
void Init_Memset()
void Init_BlitRow()
static void CacheRuntimeFeatures()
Definition: SkCpu.cpp:94