diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpu/GrTest.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index fa0556d11f..15faffadac 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -130,15 +130,9 @@ sk_sp<SkImage> GrContext::getFontAtlasImage_ForTesting(GrMaskFormat format) { return nullptr; } - GrTexture* tex = proxy->instantiate(this->resourceProvider()); - if (!tex) { - return nullptr; - } - - // MDB TODO: add proxy-backed SkImage_Gpu's - sk_sp<SkImage> image(new SkImage_Gpu(tex->width(), tex->height(), - kNeedNewImageUniqueID, kPremul_SkAlphaType, - sk_ref_sp(tex), nullptr, SkBudgeted::kNo)); + SkASSERT(proxy->priv().isExact()); + sk_sp<SkImage> image(new SkImage_Gpu(this, kNeedNewImageUniqueID, kPremul_SkAlphaType, + std::move(proxy), nullptr, SkBudgeted::kNo)); return image; } |