/external/skia/src/gpu/text/ |
D | GrAtlasManager.h | 26 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];
|
D | GrAtlasManager.cpp | 16 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()
|
D | GrStrikeCache.cpp | 142 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()
|
D | GrStrikeCache.h | 47 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(const SkGlyph&, 59 void removeID(GrDrawOpAtlas::PlotLocator);
|
D | GrTextBlob.h | 336 GrDrawOpAtlas::BulkUseTokenUpdater* bulkUseToken(); 379 GrDrawOpAtlas::BulkUseTokenUpdater fBulkUseToken; 381 uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
|
D | GrTextBlob.cpp | 127 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/ |
D | DrawOpAtlasTest.cpp | 50 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/ |
D | DrawOpAtlasTest.cpp | 47 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/ |
D | GrAtlasManager.h | 29 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];
|
D | GrStrikeCache.cpp | 41 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()
|
D | GrAtlasManager.cpp | 15 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()
|
D | GrStrikeCache.h | 63 GrDrawOpAtlas::ErrorCode addGlyphToAtlas(GrResourceProvider*, GrDeferredUploadTarget*, 72 void removeID(GrDrawOpAtlas::AtlasID); 127 static void HandleEviction(GrDrawOpAtlas::AtlasID, void*);
|
D | GrTextBlobVertexRegenerator.cpp | 207 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/ |
D | GrDrawOpAtlas.cpp | 29 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 …]
|
D | GrDrawOpAtlas.h | 50 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 …]
|
D | GrGlyph.h | 91 uint32_t pageIndex() const { return GrDrawOpAtlas::GetPageIndexFromID(fID); } in pageIndex() 108 GrDrawOpAtlas::AtlasID fID{GrDrawOpAtlas::kInvalidAtlasID};
|
D | GrDirectContext.cpp | 74 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing; in init() 78 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kNo; in init() 80 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kYes; in init()
|
/external/skia/src/gpu/ |
D | GrDrawOpAtlas.cpp | 35 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 …]
|
D | GrDrawOpAtlas.h | 50 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 …]
|
D | GrGlyph.h | 83 uint32_t pageIndex() const { return GrDrawOpAtlas::GetPageIndexFromID(fPlotLocator); } in pageIndex() 91 GrDrawOpAtlas::PlotLocator fPlotLocator{GrDrawOpAtlas::kInvalidPlotLocator};
|
D | GrLegacyDirectContext.cpp | 98 GrDrawOpAtlas::AllowMultitexturing allowMultitexturing; in init() 103 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kNo; in init() 105 allowMultitexturing = GrDrawOpAtlas::AllowMultitexturing::kYes; in init()
|
/external/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.h | 27 public GrDrawOpAtlas::EvictionCallback, 28 public GrDrawOpAtlas::GenerationCounter { 59 GrDrawOpAtlas* atlas, 77 void evict(GrDrawOpAtlas::PlotLocator) override; 79 std::unique_ptr<GrDrawOpAtlas> fAtlas;
|
D | GrSmallPathRenderer.cpp | 120 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/ |
D | GrSmallPathRenderer.cpp | 122 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 …]
|
D | GrSmallPathRenderer.h | 57 GrDrawOpAtlas* atlas, 75 static void HandleEviction(GrDrawOpAtlas::AtlasID, void*); 77 std::unique_ptr<GrDrawOpAtlas> fAtlas;
|