| Index: src/gpu/GrImageIDTextureAdjuster.cpp
|
| diff --git a/src/gpu/GrImageIDTextureAdjuster.cpp b/src/gpu/GrImageIDTextureAdjuster.cpp
|
| index 21c2f333589b9b1d913220c4063daa99a6475d60..6e5819b18453f94c9b113754123333dcfe3dc3a0 100644
|
| --- a/src/gpu/GrImageIDTextureAdjuster.cpp
|
| +++ b/src/gpu/GrImageIDTextureAdjuster.cpp
|
| @@ -81,7 +81,7 @@ GrBitmapTextureMaker::GrBitmapTextureMaker(GrContext* context, const SkBitmap& b
|
| }
|
| }
|
|
|
| -GrTexture* GrBitmapTextureMaker::refOriginalTexture(bool willBeMipped) {
|
| +GrTexture* GrBitmapTextureMaker::refOriginalTexture(bool willBeMipped, bool gammaCorrect) {
|
| GrTexture* tex = nullptr;
|
|
|
| if (fOriginalKey.isValid()) {
|
| @@ -91,7 +91,7 @@ GrTexture* GrBitmapTextureMaker::refOriginalTexture(bool willBeMipped) {
|
| }
|
| }
|
| if (willBeMipped) {
|
| - tex = GrGenerateMipMapsAndUploadToTexture(this->context(), fBitmap);
|
| + tex = GrGenerateMipMapsAndUploadToTexture(this->context(), fBitmap, gammaCorrect);
|
| }
|
| if (!tex) {
|
| tex = GrUploadBitmapToTexture(this->context(), fBitmap);
|
| @@ -130,8 +130,9 @@ GrImageTextureMaker::GrImageTextureMaker(GrContext* context, SkImageCacherator*
|
| }
|
| }
|
|
|
| -GrTexture* GrImageTextureMaker::refOriginalTexture(bool willBeMipped) {
|
| - return fCacher->lockTexture(this->context(), fOriginalKey, fClient, fCachingHint, willBeMipped);
|
| +GrTexture* GrImageTextureMaker::refOriginalTexture(bool willBeMipped, bool gammaCorrect) {
|
| + return fCacher->lockTexture(this->context(), fOriginalKey, fClient, fCachingHint, willBeMipped,
|
| + gammaCorrect);
|
| }
|
|
|
| void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) {
|
|
|