Fix createTexture calls in vk tests

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1737343002

Review URL: https://codereview.chromium.org/1737343002
This commit is contained in:
egdaniel 2016-02-25 13:47:45 -08:00 committed by Commit bot
parent d2c7791233
commit a705641cf6
2 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ void basic_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelC
surfDesc.fHeight = 5; surfDesc.fHeight = 5;
surfDesc.fConfig = config; surfDesc.fConfig = config;
surfDesc.fSampleCnt = 0; surfDesc.fSampleCnt = 0;
GrTexture* tex = gpu->createTexture(surfDesc, false, nullptr, 0); GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo, nullptr, 0);
SkASSERT(tex); SkASSERT(tex);
SkASSERT(tex->asRenderTarget()); SkASSERT(tex->asRenderTarget());
SkIRect rect = SkIRect::MakeWH(5, 5); SkIRect rect = SkIRect::MakeWH(5, 5);
@ -113,7 +113,7 @@ void sub_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelCon
surfDesc.fHeight = height; surfDesc.fHeight = height;
surfDesc.fConfig = config; surfDesc.fConfig = config;
surfDesc.fSampleCnt = 0; surfDesc.fSampleCnt = 0;
GrTexture* tex = gpu->createTexture(surfDesc, false, nullptr, 0); GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo, nullptr, 0);
SkASSERT(tex); SkASSERT(tex);
SkASSERT(tex->asRenderTarget()); SkASSERT(tex->asRenderTarget());

View File

@ -83,7 +83,7 @@ void basic_texture_test(skiatest::Reporter* reporter, GrContext* context, GrPixe
surfDesc.fHeight = kHeight; surfDesc.fHeight = kHeight;
surfDesc.fConfig = config; surfDesc.fConfig = config;
surfDesc.fSampleCnt = 0; surfDesc.fSampleCnt = 0;
GrTexture* tex0 = gpu->createTexture(surfDesc, false, srcBuffer, 0); GrTexture* tex0 = gpu->createTexture(surfDesc, SkBudgeted::kNo, srcBuffer, 0);
if (tex0) { if (tex0) {
REPORTER_ASSERT(reporter, canCreate); REPORTER_ASSERT(reporter, canCreate);
gpu->readPixels(tex0, 0, 0, kWidth, kHeight, config, dstBuffer, 0); gpu->readPixels(tex0, 0, 0, kWidth, kHeight, config, dstBuffer, 0);
@ -108,7 +108,7 @@ void basic_texture_test(skiatest::Reporter* reporter, GrContext* context, GrPixe
} }
surfDesc.fOrigin = kBottomLeft_GrSurfaceOrigin; surfDesc.fOrigin = kBottomLeft_GrSurfaceOrigin;
GrTexture* tex1 = gpu->createTexture(surfDesc, false, srcBuffer, 0); GrTexture* tex1 = gpu->createTexture(surfDesc, SkBudgeted::kNo, srcBuffer, 0);
if (tex1) { if (tex1) {
REPORTER_ASSERT(reporter, canCreate); REPORTER_ASSERT(reporter, canCreate);
gpu->readPixels(tex1, 0, 0, kWidth, kHeight, config, dstBuffer, 0); gpu->readPixels(tex1, 0, 0, kWidth, kHeight, config, dstBuffer, 0);