Home
last modified time | relevance | path

Searched refs:GrDrawOpAtlas (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/src/gpu/text/
DGrAtlasManager.h26 class GrAtlasManager : public GrOnFlushCallbackObject, public GrDrawOpAtlas::GenerationCounter {
28 GrAtlasManager(GrProxyProvider*, size_t maxTextureBytes, GrDrawOpAtlas::AllowMultitexturing);
51 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(const SkGlyph& skGlyph,
63 void addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater*, GrMaskFormat, GrGlyph*,
66 void setUseTokenBulk(const GrDrawOpAtlas::BulkUseTokenUpdater& updater, in setUseTokenBulk()
73 GrDrawOpAtlas::ErrorCode addToAtlas(GrResourceProvider*, GrDeferredUploadTarget*, GrMaskFormat,
75 GrDrawOpAtlas::AtlasLocator*);
133 GrDrawOpAtlas* getAtlas(GrMaskFormat format) const { in getAtlas()
140 GrDrawOpAtlas::AllowMultitexturing fAllowMultitexturing;
141 std::unique_ptr<GrDrawOpAtlas> fAtlases[kMaskFormatCount];
DGrAtlasManager.cpp18 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing) in GrAtlasManager()
141 GrDrawOpAtlas::ErrorCode GrAtlasManager::addGlyphToAtlas(const SkGlyph& skGlyph, in addGlyphToAtlas()
148 return GrDrawOpAtlas::ErrorCode::kError; in addGlyphToAtlas()
182 if (errorCode == GrDrawOpAtlas::ErrorCode::kSucceeded) { in addGlyphToAtlas()
190 GrDrawOpAtlas::ErrorCode GrAtlasManager::addToAtlas(GrResourceProvider* resourceProvider, in addToAtlas()
194 GrDrawOpAtlas::AtlasLocator* atlasLocator) { in addToAtlas()
199 void GrAtlasManager::addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater* updater, in addGlyphToBulkAndSetUseToken()
312 fAtlases[index] = GrDrawOpAtlas::Make(fProxyProvider, format, grColorType, in initAtlas()
DGrTextBlob.cpp334 uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
335 GrDrawOpAtlas::BulkUseTokenUpdater fBulkUseToken;
400 if (code != GrDrawOpAtlas::ErrorCode::kSucceeded) { in regenerateAtlas()
401 success = code != GrDrawOpAtlas::ErrorCode::kError; in regenerateAtlas()
/external/skia/tests/
DDrawOpAtlasTest.cpp50 int GrDrawOpAtlas::numAllocated_TestingOnly() const { in numAllocated_TestingOnly()
69 void GrDrawOpAtlas::setMaxPages_TestingOnly(uint32_t maxPages) { in setMaxPages_TestingOnly()
75 class DummyEvict : public GrDrawOpAtlas::EvictionCallback {
77 void evict(GrDrawOpAtlas::PlotLocator) override { in evict()
82 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas, in check()
114 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot()
117 GrDrawOpAtlas::AtlasLocator* atlasLocator, in fill_plot()
125 GrDrawOpAtlas::ErrorCode code; in fill_plot()
128 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in fill_plot()
148 GrDrawOpAtlas::GenerationCounter counter; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/skqp/src/gpu/text/
DGrAtlasManager.h29 size_t maxTextureBytes, GrDrawOpAtlas::AllowMultitexturing);
66 void addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater*, GrGlyph*,
69 void setUseTokenBulk(const GrDrawOpAtlas::BulkUseTokenUpdater& updater, in setUseTokenBulk()
76 GrDrawOpAtlas::ErrorCode addToAtlas(
78 GrDrawOpAtlas::AtlasID*, GrDeferredUploadTarget*, GrMaskFormat,
137 GrDrawOpAtlas* getAtlas(GrMaskFormat format) const { in getAtlas()
144 GrDrawOpAtlas::AllowMultitexturing fAllowMultitexturing;
145 std::unique_ptr<GrDrawOpAtlas> fAtlases[kMaskFormatCount];
DGrStrikeCache.cpp41 void GrStrikeCache::HandleEviction(GrDrawOpAtlas::AtlasID id, void* ptr) { in HandleEviction()
181 void GrTextStrike::removeID(GrDrawOpAtlas::AtlasID id) { in removeID()
185 (*iter).fID = GrDrawOpAtlas::kInvalidAtlasID; in removeID()
193 GrDrawOpAtlas::ErrorCode GrTextStrike::addGlyphToAtlas( in addGlyphToAtlas()
233 return GrDrawOpAtlas::ErrorCode::kError; in addGlyphToAtlas()
236 GrDrawOpAtlas::ErrorCode result = fullAtlasManager->addToAtlas( in addGlyphToAtlas()
241 if (GrDrawOpAtlas::ErrorCode::kSucceeded == result) { in addGlyphToAtlas()
246 SkASSERT(GrDrawOpAtlas::kInvalidAtlasID != glyph->fID); in addGlyphToAtlas()
DGrAtlasManager.cpp15 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing) in GrAtlasManager()
65 GrDrawOpAtlas::ErrorCode GrAtlasManager::addToAtlas( in addToAtlas()
68 GrTextStrike* strike, GrDrawOpAtlas::AtlasID* id, in addToAtlas()
76 void GrAtlasManager::addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater* updater, in addGlyphToBulkAndSetUseToken()
186 fAtlases[index] = GrDrawOpAtlas::Make( in initAtlas()
DGrStrikeCache.h63 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(GrResourceProvider*, GrDeferredUploadTarget*,
72 void removeID(GrDrawOpAtlas::AtlasID);
127 static void HandleEviction(GrDrawOpAtlas::AtlasID, void*);
DGrTextBlobVertexRegenerator.cpp207 GrDrawOpAtlas::ErrorCode code; in doRegen()
212 if (GrDrawOpAtlas::ErrorCode::kError == code) { in doRegen()
216 else if (GrDrawOpAtlas::ErrorCode::kTryAgain == code) { in doRegen()
249 ? GrDrawOpAtlas::kInvalidAtlasGeneration in doRegen()
DGrTextBlob.h291 GrDrawOpAtlas::BulkUseTokenUpdater* bulkUseToken() { return &fBulkUseToken; } in bulkUseToken()
354 GrDrawOpAtlas::BulkUseTokenUpdater fBulkUseToken;
358 uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
/external/skqp/tests/
DDrawOpAtlasTest.cpp47 int GrDrawOpAtlas::numAllocated_TestingOnly() const { in numAllocated_TestingOnly()
66 void GrDrawOpAtlas::setMaxPages_TestingOnly(uint32_t maxPages) { in setMaxPages_TestingOnly()
72 void EvictionFunc(GrDrawOpAtlas::AtlasID atlasID, void*) { in EvictionFunc()
76 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas, in check()
108 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot()
111 GrDrawOpAtlas::AtlasID* atlasID, in fill_plot()
120 GrDrawOpAtlas::ErrorCode code; in fill_plot()
123 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in fill_plot()
141 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
147 GrDrawOpAtlas::AllowMultitexturing::kYes, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/skqp/src/gpu/
DGrDrawOpAtlas.cpp29 void GrDrawOpAtlas::instantiate(GrOnFlushResourceProvider* onFlushResourceProvider) { in instantiate()
36 std::unique_ptr<GrDrawOpAtlas> GrDrawOpAtlas::Make(GrProxyProvider* proxyProvider, in Make()
41 GrDrawOpAtlas::EvictionFunc func, void* data) { in Make()
42 std::unique_ptr<GrDrawOpAtlas> atlas(new GrDrawOpAtlas(proxyProvider, format, config, width, in Make()
58 GrDrawOpAtlas::Plot::Plot(int pageIndex, int plotIndex, uint64_t genID, int offX, int offY, in Plot()
87 GrDrawOpAtlas::Plot::~Plot() { in ~Plot()
92 bool GrDrawOpAtlas::Plot::addSubImage(int width, int height, const void* image, SkIPoint16* loc) { in addSubImage()
137 void GrDrawOpAtlas::Plot::uploadToTexture(GrDeferredTextureUploadWritePixelsFn& writePixels, in uploadToTexture()
161 void GrDrawOpAtlas::Plot::resetRects() { in resetRects()
182 GrDrawOpAtlas::GrDrawOpAtlas(GrProxyProvider* proxyProvider, const GrBackendFormat& format, in GrDrawOpAtlas() function in GrDrawOpAtlas
[all …]
DGrDrawOpAtlas.h50 class GrDrawOpAtlas {
75 typedef void (*EvictionFunc)(GrDrawOpAtlas::AtlasID, void*);
94 static std::unique_ptr<GrDrawOpAtlas> Make(GrProxyProvider*,
100 GrDrawOpAtlas::EvictionFunc func, void* data);
179 int index = GrDrawOpAtlas::GetPlotIndexFromID(id); in add()
180 int pageIdx = GrDrawOpAtlas::GetPageIndexFromID(id); in add()
216 friend class GrDrawOpAtlas; variable
249 GrDrawOpAtlas(GrProxyProvider*, const GrBackendFormat& format, GrPixelConfig, int width,
271 GrDrawOpAtlas::AtlasID id() const { in id()
272 SkASSERT(GrDrawOpAtlas::kInvalidAtlasID != fID); in id()
[all …]
DGrGlyph.h91 uint32_t pageIndex() const { return GrDrawOpAtlas::GetPageIndexFromID(fID); } in pageIndex()
108 GrDrawOpAtlas::AtlasID fID{GrDrawOpAtlas::kInvalidAtlasID};
DGrDirectContext.cpp74 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing; in init()
78 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kNo; in init()
80 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kYes; in init()
/external/skia/src/gpu/ops/
DGrSmallPathAtlasMgr.h29 public GrDrawOpAtlas::EvictionCallback,
30 public GrDrawOpAtlas::GenerationCounter {
42 GrDrawOpAtlas::ErrorCode addToAtlas(GrResourceProvider*,
45 GrDrawOpAtlas::AtlasLocator*);
78 void evict(GrDrawOpAtlas::PlotLocator) override;
83 std::unique_ptr<GrDrawOpAtlas> fAtlas;
DGrSmallPathAtlasMgr.cpp57 fAtlas = GrDrawOpAtlas::Make(proxyProvider, format, in initAtlas()
60 GrDrawOpAtlas::AllowMultitexturing::kYes, this); in initAtlas()
104 GrDrawOpAtlas::ErrorCode GrSmallPathAtlasMgr::addToAtlas(GrResourceProvider* resourceProvider, in addToAtlas()
107 GrDrawOpAtlas::AtlasLocator* locator) { in addToAtlas()
117 void GrSmallPathAtlasMgr::evict(GrDrawOpAtlas::PlotLocator plotLocator) { in evict()
DGrSmallPathShapeData.h53 GrDrawOpAtlas::AtlasLocator fAtlasLocator;
DGrSmallPathRenderer.cpp377 if (GrDrawOpAtlas::ErrorCode::kError == code) { in addToAtlasWithRetry()
381 if (GrDrawOpAtlas::ErrorCode::kTryAgain == code) { in addToAtlasWithRetry()
391 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in addToAtlasWithRetry()
/external/skia/src/gpu/
DGrDrawOpAtlas.cpp29 void GrDrawOpAtlas::validate(const AtlasLocator& atlasLocator) const { in validate()
50 void GrDrawOpAtlas::instantiate(GrOnFlushResourceProvider* onFlushResourceProvider) { in instantiate()
57 std::unique_ptr<GrDrawOpAtlas> GrDrawOpAtlas::Make(GrProxyProvider* proxyProvider, in Make()
68 std::unique_ptr<GrDrawOpAtlas> atlas(new GrDrawOpAtlas(proxyProvider, format, colorType, in Make()
83 GrDrawOpAtlas::Plot::Plot(int pageIndex, int plotIndex, GenerationCounter* generationCounter, in Plot()
113 GrDrawOpAtlas::Plot::~Plot() { in ~Plot()
117 bool GrDrawOpAtlas::Plot::addSubImage( in addSubImage()
162 void GrDrawOpAtlas::Plot::uploadToTexture(GrDeferredTextureUploadWritePixelsFn& writePixels, in uploadToTexture()
185 void GrDrawOpAtlas::Plot::resetRects() { in resetRects()
204 GrDrawOpAtlas::GrDrawOpAtlas(GrProxyProvider* proxyProvider, const GrBackendFormat& format, in GrDrawOpAtlas() function in GrDrawOpAtlas
[all …]
DGrDrawOpAtlas.h53 class GrDrawOpAtlas {
223 static std::unique_ptr<GrDrawOpAtlas> Make(GrProxyProvider*,
340 friend class GrDrawOpAtlas; variable
369 GrDrawOpAtlas(GrProxyProvider*, const GrBackendFormat& format, GrColorType, int width,
459 friend class GrDrawOpAtlas; variable
DGrGlyph.h39 GrDrawOpAtlas::AtlasLocator fAtlasLocator;
DGrDirectContext.cpp242 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing; in init()
247 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kNo; in init()
249 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kYes; in init()
/external/skqp/src/gpu/ops/
DGrSmallPathRenderer.cpp122 GrDrawOpAtlas::AtlasID fID;
139 void GrSmallPathRenderer::HandleEviction(GrDrawOpAtlas::AtlasID id, void* pr) { in HandleEviction()
236 GrDrawOpAtlas* atlas, in Make()
247 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, ShapeCache* shapeCache, in SmallPathOp()
499 bool addToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, GrDrawOpAtlas* atlas, in addToAtlas()
501 GrDrawOpAtlas::AtlasID* id, SkIPoint16* atlasLocation) const { in addToAtlas()
505 GrDrawOpAtlas::ErrorCode code = atlas->addToAtlas(resourceProvider, id, in addToAtlas()
508 if (GrDrawOpAtlas::ErrorCode::kError == code) { in addToAtlas()
512 if (GrDrawOpAtlas::ErrorCode::kTryAgain == code) { in addToAtlas()
519 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in addToAtlas()
[all …]
DGrSmallPathRenderer.h57 GrDrawOpAtlas* atlas,
75 static void HandleEviction(GrDrawOpAtlas::AtlasID, void*);
77 std::unique_ptr<GrDrawOpAtlas> fAtlas;

12