diff options
author | 2016-03-09 14:26:26 -0800 | |
---|---|---|
committer | 2016-03-09 14:26:26 -0800 | |
commit | 6ceeebd37a43d879c120b6ba100ae1febdd67a18 (patch) | |
tree | 6c4dfeb68ba4183bc2e63d8888ae01f24caede88 /src/gpu/SkGr.cpp | |
parent | f842c50116863f44240f806509f14e434eabb0a8 (diff) |
unify peekPixels around pixmap parameter
requires this chrome CL to land first
https://codereview.chromium.org/1775393003/
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1784563002
Review URL: https://codereview.chromium.org/1784563002
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r-- | src/gpu/SkGr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index d7af8258c7..81a3502455 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()); } } |