Index: src/gpu/GrResourceProvider.cpp |
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp |
index b63a7eaa458ed2323b82f32baa16b23ee3187f3f..173b5606f29daa9a6766cf371f72db7d02df631b 100644 |
--- a/src/gpu/GrResourceProvider.cpp |
+++ b/src/gpu/GrResourceProvider.cpp |
@@ -153,7 +153,8 @@ GrBatchAtlas* GrResourceProvider::createAtlas(GrPixelConfig config, |
if (!texture) { |
return nullptr; |
} |
- GrBatchAtlas* atlas = new GrBatchAtlas(texture, numPlotsX, numPlotsY); |
+ GrBatchAtlas* atlas = new GrBatchAtlas(this, texture, |
+ numPlotsX, numPlotsY); |
atlas->registerEvictionCallback(func, data); |
return atlas; |
} |