Index: src/core/SkImageCacherator.cpp |
diff --git a/src/core/SkImageCacherator.cpp b/src/core/SkImageCacherator.cpp |
index bb389e986b4e4d831ddd5d66bead22324729b824..12c09cbe0ae7107658350379635c5881eea9a010 100644 |
--- a/src/core/SkImageCacherator.cpp |
+++ b/src/core/SkImageCacherator.cpp |
@@ -171,8 +171,7 @@ |
} |
const uint32_t pixelOpsFlags = 0; |
- if (!tex->readPixels(0, 0, bitmap->width(), bitmap->height(), |
- SkImageInfo2GrPixelConfig(fInfo, *tex->getContext()->caps()), |
+ if (!tex->readPixels(0, 0, bitmap->width(), bitmap->height(), SkImageInfo2GrPixelConfig(fInfo), |
bitmap->getPixels(), bitmap->rowBytes(), pixelOpsFlags)) { |
bitmap->reset(); |
return false; |
@@ -274,7 +273,7 @@ |
} |
} |
- const GrSurfaceDesc desc = GrImageInfoToSurfaceDesc(fInfo, *ctx->caps()); |
+ const GrSurfaceDesc desc = GrImageInfoToSurfaceDesc(fInfo); |
// 3. Ask the generator to return a compressed form that the GPU might support |
SkAutoTUnref<SkData> data(this->refEncoded(ctx)); |