diff options
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 1f273dc615..a6e0bdfcdd 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -360,8 +360,7 @@ protected: return; } // No API to draw a GrTexture directly, so we cheat and create a private image subclass - sk_sp<SkImage> image(new SkImage_Gpu(cache->info().width(), cache->info().height(), - cache->uniqueID(), kPremul_SkAlphaType, + sk_sp<SkImage> image(new SkImage_Gpu(cache->uniqueID(), kPremul_SkAlphaType, std::move(texture), std::move(texColorSpace), SkBudgeted::kNo)); canvas->drawImage(image.get(), x, y); |