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:
parent
d2c7791233
commit
a705641cf6
@ -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());
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user