Index: src/core/SkImageGenerator.cpp |
diff --git a/src/core/SkImageGenerator.cpp b/src/core/SkImageGenerator.cpp |
index 187b46047af7e403feb2577940d15f0ea83a286f..98a40148f272f218fcd04003c55373a6d3b28cea 100644 |
--- a/src/core/SkImageGenerator.cpp |
+++ b/src/core/SkImageGenerator.cpp |
@@ -104,12 +104,12 @@ bool SkImageGenerator::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t |
return this->onGetYUV8Planes(sizes, planes, rowBytes); |
} |
-GrTexture* SkImageGenerator::generateTexture(GrContext* ctx, SkImageUsageType usage, |
+GrTexture* SkImageGenerator::generateTexture(GrContext* ctx, const GrTextureParams& params, |
const SkIRect* subset) { |
if (subset && !SkIRect::MakeWH(fInfo.width(), fInfo.height()).contains(*subset)) { |
return nullptr; |
} |
- return this->onGenerateTexture(ctx, usage, subset); |
+ return this->onGenerateTexture(ctx, params, subset); |
} |
///////////////////////////////////////////////////////////////////////////////////////////// |