From a705641cf6bbf66a8feeb3ceddb2b45a417cebf4 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Thu, 25 Feb 2016 13:47:45 -0800 Subject: [PATCH] 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 --- tests/VkClearTests.cpp | 4 ++-- tests/VkUploadPixelsTests.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/VkClearTests.cpp b/tests/VkClearTests.cpp index 60e7981528..586d7e7728 100644 --- a/tests/VkClearTests.cpp +++ b/tests/VkClearTests.cpp @@ -58,7 +58,7 @@ void basic_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelC surfDesc.fHeight = 5; surfDesc.fConfig = config; surfDesc.fSampleCnt = 0; - GrTexture* tex = gpu->createTexture(surfDesc, false, nullptr, 0); + GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo, nullptr, 0); SkASSERT(tex); SkASSERT(tex->asRenderTarget()); SkIRect rect = SkIRect::MakeWH(5, 5); @@ -113,7 +113,7 @@ void sub_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelCon surfDesc.fHeight = height; surfDesc.fConfig = config; surfDesc.fSampleCnt = 0; - GrTexture* tex = gpu->createTexture(surfDesc, false, nullptr, 0); + GrTexture* tex = gpu->createTexture(surfDesc, SkBudgeted::kNo, nullptr, 0); SkASSERT(tex); SkASSERT(tex->asRenderTarget()); diff --git a/tests/VkUploadPixelsTests.cpp b/tests/VkUploadPixelsTests.cpp index 043ea45a81..9fc495265d 100644 --- a/tests/VkUploadPixelsTests.cpp +++ b/tests/VkUploadPixelsTests.cpp @@ -83,7 +83,7 @@ void basic_texture_test(skiatest::Reporter* reporter, GrContext* context, GrPixe surfDesc.fHeight = kHeight; surfDesc.fConfig = config; surfDesc.fSampleCnt = 0; - GrTexture* tex0 = gpu->createTexture(surfDesc, false, srcBuffer, 0); + GrTexture* tex0 = gpu->createTexture(surfDesc, SkBudgeted::kNo, srcBuffer, 0); if (tex0) { REPORTER_ASSERT(reporter, canCreate); 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; - GrTexture* tex1 = gpu->createTexture(surfDesc, false, srcBuffer, 0); + GrTexture* tex1 = gpu->createTexture(surfDesc, SkBudgeted::kNo, srcBuffer, 0); if (tex1) { REPORTER_ASSERT(reporter, canCreate); gpu->readPixels(tex1, 0, 0, kWidth, kHeight, config, dstBuffer, 0);