Index: src/core/SkPictureImageGenerator.cpp |
diff --git a/src/core/SkPictureImageGenerator.cpp b/src/core/SkPictureImageGenerator.cpp |
index 13d3cc85c5a29758bf87675c4bf0feb795fe71e8..a27291f1a87c320b6418c2b1c6d324f6c5a71df6 100644 |
--- a/src/core/SkPictureImageGenerator.cpp |
+++ b/src/core/SkPictureImageGenerator.cpp |
@@ -22,7 +22,7 @@ protected: |
bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], |
int* ctableCount) override; |
#if SK_SUPPORT_GPU |
- GrTexture* onGenerateTexture(GrContext*, SkImageUsageType, const SkIRect*) override; |
+ GrTexture* onGenerateTexture(GrContext*, const GrTextureParams&, const SkIRect*) override; |
#endif |
private: |
@@ -88,7 +88,7 @@ SkImageGenerator* SkImageGenerator::NewFromPicture(const SkISize& size, const Sk |
#if SK_SUPPORT_GPU |
#include "GrTexture.h" |
-GrTexture* SkPictureImageGenerator::onGenerateTexture(GrContext* ctx, SkImageUsageType usage, |
+GrTexture* SkPictureImageGenerator::onGenerateTexture(GrContext* ctx, const GrTextureParams&, |
const SkIRect* subset) { |
const SkImageInfo& info = this->getInfo(); |
SkImageInfo surfaceInfo = subset ? info.makeWH(subset->width(), subset->height()) : info; |