Chromium Code Reviews| Index: src/gpu/SkGr.cpp |
| diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
| index d7af8258c73b1b3ce85dd1599a4ef697f2e2b7fc..81a3502455765c78ffff32b11c2132d78e208a75 100644 |
| --- a/src/gpu/SkGr.cpp |
| +++ b/src/gpu/SkGr.cpp |
| @@ -263,6 +263,8 @@ GrTexture* GrUploadPixmapToTexture(GrContext* ctx, const SkPixmap& pixmap) { |
| return nullptr; |
| } |
| pmap = &tmpPixmap; |
| + // must rebuild desc, since we've forced the info to be N32 |
| + desc = GrImageInfoToSurfaceDesc(pmap->info()); |
| } |
| } |