diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-09-18 10:05:00 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-18 16:26:19 +0000 |
commit | eafa64b4018a334daae74492fb33bc54bd0bb6aa (patch) | |
tree | 9b74611bfc30799b3d81c0dbad66668173529294 /src/gpu/effects/GrBitmapTextGeoProc.cpp | |
parent | 7aeefdb0a2a71e03f796854a7a623827a3a69e8f (diff) |
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 <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/effects/GrBitmapTextGeoProc.cpp')
-rw-r--r-- | src/gpu/effects/GrBitmapTextGeoProc.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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<GrTextureProxy> 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); |