aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-09 12:00:34 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-09 17:33:20 +0000
commit41a3b87846553e9d77e0e113bfaf4ec74a068e96 (patch)
tree1494d36c2b5704e5bb364100b06fa217a72527e4 /src/effects
parentafdc6b1ba9f5dba52916bd20b608f1f7c21c3160 (diff)
Make GrTextureStripAtlas DDL friendly
Change-Id: If8fdd7a1c027bc2b2791cfe1af13f99c2561d93d Reviewed-on: https://skia-review.googlesource.com/113268 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkTableColorFilter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp
index 46bfba99ca..3896acda59 100644
--- a/src/effects/SkTableColorFilter.cpp
+++ b/src/effects/SkTableColorFilter.cpp
@@ -444,16 +444,16 @@ std::unique_ptr<GrFragmentProcessor> ColorTableEffect::Make(GrContext* context,
desc.fWidth = bitmap.width();
desc.fHeight = 128;
desc.fRowHeight = bitmap.height();
- // TODO: this seems a bit heavy handed (passing a GrContext as part of the desc)
- desc.fContext = context;
desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info(), *context->caps());
if (kUnknown_GrPixelConfig == desc.fConfig) {
return nullptr;
}
- GrTextureStripAtlas* atlas = GrTextureStripAtlas::GetAtlas(desc);
- int row = atlas->lockRow(bitmap);
+ auto atlasManager = context->contextPriv().textureStripAtlasManager();
+
+ GrTextureStripAtlas* atlas = atlasManager->getAtlas(desc);
+ int row = atlas->lockRow(context, bitmap);
sk_sp<GrTextureProxy> proxy;
if (-1 == row) {
atlas = nullptr;