Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/text/
DGrAtlasManager.h26 class GrAtlasManager : public GrOnFlushCallbackObject, public GrDrawOpAtlas::GenerationCounter {
29 size_t maxTextureBytes, GrDrawOpAtlas::AllowMultitexturing);
67 void addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater*, GrGlyph*,
70 void setUseTokenBulk(const GrDrawOpAtlas::BulkUseTokenUpdater& updater, in setUseTokenBulk()
77 GrDrawOpAtlas::ErrorCode addToAtlas(
79 GrDrawOpAtlas::PlotLocator*, GrDeferredUploadTarget*, GrMaskFormat,
128 GrDrawOpAtlas* getAtlas(GrMaskFormat format) const { in getAtlas()
135 GrDrawOpAtlas::AllowMultitexturing fAllowMultitexturing;
136 std::unique_ptr<GrDrawOpAtlas> fAtlases[kMaskFormatCount];
DGrAtlasManager.cpp16 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing) in GrAtlasManager()
37 GrDrawOpAtlas::ErrorCode GrAtlasManager::addToAtlas( in addToAtlas()
39 GrDrawOpAtlas::PlotLocator* plotLocator, in addToAtlas()
46 void GrAtlasManager::addGlyphToBulkAndSetUseToken(GrDrawOpAtlas::BulkUseTokenUpdater* updater, in addGlyphToBulkAndSetUseToken()
158 fAtlases[index] = GrDrawOpAtlas::Make( in initAtlas()
DGrStrikeCache.cpp142 void GrTextStrike::removeID(GrDrawOpAtlas::PlotLocator plotLocator) { in removeID()
145 (*glyph)->fPlotLocator = GrDrawOpAtlas::kInvalidPlotLocator; in removeID()
152 GrDrawOpAtlas::ErrorCode GrTextStrike::addGlyphToAtlas(const SkGlyph& skGlyph, in addGlyphToAtlas()
187 GrDrawOpAtlas::ErrorCode result = fullAtlasManager->addToAtlas( in addGlyphToAtlas()
191 if (GrDrawOpAtlas::ErrorCode::kSucceeded == result) { in addGlyphToAtlas()
196 SkASSERT(grGlyph->fPlotLocator != GrDrawOpAtlas::kInvalidPlotLocator); in addGlyphToAtlas()
DGrStrikeCache.h47 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(const SkGlyph&,
59 void removeID(GrDrawOpAtlas::PlotLocator);
DGrTextBlob.h336 GrDrawOpAtlas::BulkUseTokenUpdater* bulkUseToken();
379 GrDrawOpAtlas::BulkUseTokenUpdater fBulkUseToken;
381 uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
DGrTextBlob.cpp127 GrDrawOpAtlas::BulkUseTokenUpdater* GrTextBlob::SubRun::bulkUseToken() { return &fBulkUseToken; } in bulkUseToken()
256 std::tie(u0, v0) = GrDrawOpAtlas::PackIndexInTexCoords(u0, v0, pageIndex); in updateTexCoords()
257 std::tie(u1, v1) = GrDrawOpAtlas::PackIndexInTexCoords(u1, v1, pageIndex); in updateTexCoords()
788 auto code = GrDrawOpAtlas::ErrorCode::kSucceeded; in updateTextureCoordinates()
803 if (code != GrDrawOpAtlas::ErrorCode::kSucceeded) { in updateTextureCoordinates()
815 return {code != GrDrawOpAtlas::ErrorCode::kError, glyphsPlacedInAtlas}; in updateTextureCoordinates()
/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 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::PlotLocator* plotLocator, in fill_plot()
126 GrDrawOpAtlas::ErrorCode code; in fill_plot()
129 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in fill_plot()
149 GrDrawOpAtlas::GenerationCounter counter; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/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/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()
/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/
DGrDrawOpAtlas.cpp35 void GrDrawOpAtlas::instantiate(GrOnFlushResourceProvider* onFlushResourceProvider) { in instantiate()
42 std::unique_ptr<GrDrawOpAtlas> GrDrawOpAtlas::Make(GrProxyProvider* proxyProvider, in Make()
53 std::unique_ptr<GrDrawOpAtlas> atlas(new GrDrawOpAtlas(proxyProvider, format, colorType, in Make()
69 std::pair<uint16_t, uint16_t> GrDrawOpAtlas::PackIndexInTexCoords(uint16_t u, uint16_t v, in PackIndexInTexCoords()
81 std::tuple<uint16_t, uint16_t, int> GrDrawOpAtlas::UnpackIndexFromTexCoords(uint16_t u, in UnpackIndexFromTexCoords()
94 GrDrawOpAtlas::Plot::Plot(int pageIndex, int plotIndex, GenerationCounter* generationCounter, in Plot()
124 GrDrawOpAtlas::Plot::~Plot() { in ~Plot()
128 bool GrDrawOpAtlas::Plot::addSubImage(int width, int height, const void* image, SkIPoint16* loc) { in addSubImage()
169 void GrDrawOpAtlas::Plot::uploadToTexture(GrDeferredTextureUploadWritePixelsFn& writePixels, in uploadToTexture()
192 void GrDrawOpAtlas::Plot::resetRects() { in resetRects()
[all …]
DGrDrawOpAtlas.h50 class GrDrawOpAtlas {
114 static std::unique_ptr<GrDrawOpAtlas> Make(GrProxyProvider*,
213 int index = GrDrawOpAtlas::GetPlotIndexFromID(plotLocator); in add()
214 int pageIdx = GrDrawOpAtlas::GetPageIndexFromID(plotLocator); in add()
250 friend class GrDrawOpAtlas; variable
283 GrDrawOpAtlas(GrProxyProvider*, const GrBackendFormat& format, GrColorType, int width,
305 GrDrawOpAtlas::PlotLocator plotLocator() const { in plotLocator()
306 SkASSERT(GrDrawOpAtlas::kInvalidPlotLocator != fPlotLocator); in plotLocator()
347 static GrDrawOpAtlas::PlotLocator CreatePlotLocator( in CreatePlotLocator()
367 GrDrawOpAtlas::PlotLocator fPlotLocator;
[all …]
DGrGlyph.h83 uint32_t pageIndex() const { return GrDrawOpAtlas::GetPageIndexFromID(fPlotLocator); } in pageIndex()
91 GrDrawOpAtlas::PlotLocator fPlotLocator{GrDrawOpAtlas::kInvalidPlotLocator};
DGrLegacyDirectContext.cpp98 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing; in init()
103 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kNo; in init()
105 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kYes; in init()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.h27 public GrDrawOpAtlas::EvictionCallback,
28 public GrDrawOpAtlas::GenerationCounter {
59 GrDrawOpAtlas* atlas,
77 void evict(GrDrawOpAtlas::PlotLocator) override;
79 std::unique_ptr<GrDrawOpAtlas> fAtlas;
DGrSmallPathRenderer.cpp120 GrDrawOpAtlas::PlotLocator fPlotLocator;
137 void GrSmallPathRenderer::evict(GrDrawOpAtlas::PlotLocator plotLocator) { in evict()
233 GrDrawOpAtlas* atlas, in Make()
244 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, ShapeCache* shapeCache, in SmallPathOp()
498 bool addToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, GrDrawOpAtlas* atlas, in addToAtlas()
500 GrDrawOpAtlas::PlotLocator* plotLocator, SkIPoint16* atlasLocation) const { in addToAtlas()
504 GrDrawOpAtlas::ErrorCode code = atlas->addToAtlas(resourceProvider, plotLocator, in addToAtlas()
507 if (GrDrawOpAtlas::ErrorCode::kError == code) { in addToAtlas()
511 if (GrDrawOpAtlas::ErrorCode::kTryAgain == code) { in addToAtlas()
518 return GrDrawOpAtlas::ErrorCode::kSucceeded == code; in addToAtlas()
[all …]
/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