From eafa64b4018a334daae74492fb33bc54bd0bb6aa Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Mon, 18 Sep 2017 10:05:00 -0400 Subject: Revert "Revert "Allow GrDrawOpAtlas to grow as needed"" Bug: skia:3550 Change-Id: I11a3b39ed7470542447f0e46141a26eef7a9bdaf Reviewed-on: https://skia-review.googlesource.com/47240 Reviewed-by: Robert Phillips Commit-Queue: Jim Van Verth --- src/gpu/effects/GrBitmapTextGeoProc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gpu/effects/GrBitmapTextGeoProc.cpp') diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp index 2d665c50cb..b10bdb1b62 100644 --- a/src/gpu/effects/GrBitmapTextGeoProc.cpp +++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp @@ -149,6 +149,16 @@ GrBitmapTextGeoProc::GrBitmapTextGeoProc(GrColor color, } } +void GrBitmapTextGeoProc::addNewProxies(const sk_sp proxies[kMaxTextures], + const GrSamplerState& params) { + for (int i = 0; i < kMaxTextures; ++i) { + if (proxies[i] && !fTextureSamplers[i].isInitialized()) { + fTextureSamplers[i].reset(std::move(proxies[i]), params); + this->addTextureSampler(&fTextureSamplers[i]); + } + } +} + void GrBitmapTextGeoProc::getGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const { GrGLBitmapTextGeoProc::GenKey(*this, caps, b); -- cgit v1.2.3