summaryrefslogtreecommitdiff
path: root/chromium/third_party/skia/src/gpu/GrResourceProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/src/gpu/GrResourceProvider.cpp')
-rw-r--r--chromium/third_party/skia/src/gpu/GrResourceProvider.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/third_party/skia/src/gpu/GrResourceProvider.cpp b/chromium/third_party/skia/src/gpu/GrResourceProvider.cpp
index bd9cc9ac6b0..5fa4e4beacb 100644
--- a/chromium/third_party/skia/src/gpu/GrResourceProvider.cpp
+++ b/chromium/third_party/skia/src/gpu/GrResourceProvider.cpp
@@ -164,7 +164,9 @@ GrBatchAtlas* GrResourceProvider::createAtlas(GrPixelConfig config,
if (!texture) {
return nullptr;
}
- return new GrBatchAtlas(texture, numPlotsX, numPlotsY);
+ GrBatchAtlas* atlas = new GrBatchAtlas(texture, numPlotsX, numPlotsY);
+ atlas->registerEvictionCallback(func, data);
+ return atlas;
}
GrStencilAttachment* GrResourceProvider::attachStencilAttachment(GrRenderTarget* rt) {