Home
last modified time | relevance | path

Searched refs:GrDrawOpAtlas (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/src/gpu/text/
H A DGrAtlasManager.h12 #include "src/gpu/GrDrawOpAtlas.h"
28 class GrAtlasManager : public GrOnFlushCallbackObject, public GrDrawOpAtlas::GenerationCounter {
30 GrAtlasManager(GrProxyProvider*, size_t maxTextureBytes, GrDrawOpAtlas::AllowMultitexturing);
67 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(const SkGlyph&,
74 // To ensure the GrDrawOpAtlas does not evict the Glyph Mask from its texture backing store,
79 void addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater*, GrMaskFormat, GrGlyph*,
82 void setUseTokenBulk(const GrDrawOpAtlas::BulkUseTokenUpdater& updater, in setUseTokenBulk()
89 GrDrawOpAtlas::ErrorCode addToAtlas(GrResourceProvider*, GrDeferredUploadTarget*, GrMaskFormat,
91 GrDrawOpAtlas::AtlasLocator*);
94 // GrDrawOpAtlas
[all...]
H A DGrAtlasManager.cpp18 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing) in GrAtlasManager()
141 GrDrawOpAtlas::ErrorCode GrAtlasManager::addGlyphToAtlas(const SkGlyph& skGlyph,
148 return GrDrawOpAtlas::ErrorCode::kError;
182 if (errorCode == GrDrawOpAtlas::ErrorCode::kSucceeded) {
190 GrDrawOpAtlas::ErrorCode GrAtlasManager::addToAtlas(GrResourceProvider* resourceProvider,
194 GrDrawOpAtlas::AtlasLocator* atlasLocator) {
199 void GrAtlasManager::addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater* updater,
318 fAtlases[index] = GrDrawOpAtlas::Make(fProxyProvider, backendFormat, grColorType,
H A DGrTextBlob.cpp337 uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
338 GrDrawOpAtlas::BulkUseTokenUpdater fBulkUseToken;
412 if (code != GrDrawOpAtlas::ErrorCode::kSucceeded) { in regenerateAtlas()
413 success = code != GrDrawOpAtlas::ErrorCode::kError; in regenerateAtlas()
/third_party/skia/tests/
H A DDrawOpAtlasTest.cpp26 #include "src/gpu/GrDrawOpAtlas.h"
49 int GrDrawOpAtlas::numAllocated_TestingOnly() const { in numAllocated_TestingOnly()
68 void GrDrawOpAtlas::setMaxPages_TestingOnly(uint32_t maxPages) { in setMaxPages_TestingOnly()
74 class AssertOnEvict : public GrDrawOpAtlas::EvictionCallback {
76 void evict(GrDrawOpAtlas::PlotLocator) override {
81 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas, in check()
113 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot()
116 GrDrawOpAtlas::AtlasLocator* atlasLocator, in fill_plot()
124 GrDrawOpAtlas::ErrorCode code; in fill_plot()
127 return GrDrawOpAtlas in fill_plot()
[all...]
/third_party/skia/src/gpu/ops/
H A DSmallPathAtlasMgr.h13 #include "src/gpu/GrDrawOpAtlas.h"
32 public GrDrawOpAtlas::EvictionCallback,
33 public GrDrawOpAtlas::GenerationCounter {
45 GrDrawOpAtlas::ErrorCode addToAtlas(GrResourceProvider*,
48 GrDrawOpAtlas::AtlasLocator*);
81 void evict(GrDrawOpAtlas::PlotLocator) override;
86 std::unique_ptr<GrDrawOpAtlas> fAtlas;
H A DSmallPathAtlasMgr.cpp66 fAtlas = GrDrawOpAtlas::Make(proxyProvider, format, in initAtlas()
69 GrDrawOpAtlas::AllowMultitexturing::kYes, in initAtlas()
117 GrDrawOpAtlas::ErrorCode SmallPathAtlasMgr::addToAtlas(GrResourceProvider* resourceProvider, in addToAtlas()
120 GrDrawOpAtlas::AtlasLocator* locator) { in addToAtlas()
130 void SmallPathAtlasMgr::evict(GrDrawOpAtlas::PlotLocator plotLocator) { in evict()
H A DSmallPathShapeData.h12 #include "src/gpu/GrDrawOpAtlas.h"
55 GrDrawOpAtlas::AtlasLocator fAtlasLocator;
H A DSmallPathRenderer.cpp332 if (GrDrawOpAtlas::ErrorCode::kError == code) { in addToAtlasWithRetry()
336 if (GrDrawOpAtlas::ErrorCode::kTryAgain == code) { in addToAtlasWithRetry()
346 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in addToAtlasWithRetry()
/third_party/skia/src/gpu/
H A DGrDrawOpAtlas.cpp8 #include "src/gpu/GrDrawOpAtlas.h"
30 void GrDrawOpAtlas::validate(const AtlasLocator& atlasLocator) const { in validate()
51 void GrDrawOpAtlas::instantiate(GrOnFlushResourceProvider* onFlushResourceProvider) { in instantiate()
58 std::unique_ptr<GrDrawOpAtlas> GrDrawOpAtlas::Make(GrProxyProvider* proxyProvider, in Make()
72 std::unique_ptr<GrDrawOpAtlas> atlas(new GrDrawOpAtlas(proxyProvider, format, colorType, in Make()
90 GrDrawOpAtlas::Plot::Plot(int pageIndex, int plotIndex, GenerationCounter* generationCounter, in Plot()
120 GrDrawOpAtlas::Plot::~Plot() { in ~Plot()
124 bool GrDrawOpAtlas
214 GrDrawOpAtlas::GrDrawOpAtlas(GrProxyProvider* proxyProvider, const GrBackendFormat& format, GrDrawOpAtlas() function in GrDrawOpAtlas
[all...]
H A DGrDrawOpAtlas.h48 * Garbage collection is initiated by the GrDrawOpAtlas's client via the compact() method. One
53 class GrDrawOpAtlas { class
213 * An interface for eviction callbacks. Whenever GrDrawOpAtlas evicts a
238 * Returns a GrDrawOpAtlas. This function can be called anywhere, but the returned atlas
251 * @return An initialized GrDrawOpAtlas, or nullptr if creation fails
253 static std::unique_ptr<GrDrawOpAtlas> Make(GrProxyProvider*,
321 * A class which can be handed back to GrDrawOpAtlas for updating last use tokens in bulk. The
322 * current max number of plots per page the GrDrawOpAtlas can handle is 32. If in the future
373 friend class GrDrawOpAtlas;
405 GrDrawOpAtlas(GrProxyProvide
[all...]
H A DGrGlyph.h14 #include "src/gpu/GrDrawOpAtlas.h"
39 GrDrawOpAtlas::AtlasLocator fAtlasLocator;
H A DGrDirectContext.cpp256 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing; in init()
261 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kNo; in init()
263 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kYes; in init()

Completed in 12 milliseconds