From 8ee78f31b2a29a5f76403755ea17bad9be74a3ec Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 4 Mar 2016 06:23:36 -0800 Subject: Don't allow nullptr in texels array params (unless using a transfer buffer). Require all levels in writePixels to have a non-nullptr. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1765633002 Review URL: https://codereview.chromium.org/1765633002 --- include/gpu/GrTextureProvider.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/gpu') diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h index 83efb5bf7b..7c12ebd6db 100644 --- a/include/gpu/GrTextureProvider.h +++ b/include/gpu/GrTextureProvider.h @@ -45,7 +45,7 @@ public: /** Shortcut for creating a texture with no initial data to upload. */ GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted) { - return this->createTexture(desc, budgeted, NULL, 0); + return this->createTexture(desc, budgeted, nullptr, 0); } /** Assigns a unique key to the texture. The texture will be findable via this key using -- cgit v1.2.3