diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/VkClearTests.cpp | 6 | ||||
-rw-r--r-- | tests/VkUploadPixelsTests.cpp | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/VkClearTests.cpp b/tests/VkClearTests.cpp index 4a8c966781..cced84439d 100644 --- a/tests/VkClearTests.cpp +++ b/tests/VkClearTests.cpp @@ -48,8 +48,8 @@ bool does_full_buffer_contain_correct_color(GrColor* buffer, } void basic_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelConfig config) { +#if 0 GrVkGpu* gpu = static_cast<GrVkGpu*>(context->getGpu()); - gpu->discard(NULL); SkAutoTMalloc<GrColor> buffer(25); GrSurfaceDesc surfDesc; @@ -95,15 +95,16 @@ void basic_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelC config, 5, 5)); +#endif } void sub_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelConfig config) { +#if 0 const int width = 10; const int height = 10; const int subWidth = width/2; const int subHeight = height/2; GrVkGpu* gpu = static_cast<GrVkGpu*>(context->getGpu()); - gpu->discard(NULL); SkAutoTMalloc<GrColor> buffer(width * height); SkAutoTMalloc<GrColor> subBuffer(subWidth * subHeight); @@ -194,6 +195,7 @@ void sub_clear_test(skiatest::Reporter* reporter, GrContext* context, GrPixelCon config, subWidth, subHeight)); +#endif } DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkClearTests, reporter, ctxInfo) { diff --git a/tests/VkUploadPixelsTests.cpp b/tests/VkUploadPixelsTests.cpp index ca11c0f5b9..7f00ad29fc 100644 --- a/tests/VkUploadPixelsTests.cpp +++ b/tests/VkUploadPixelsTests.cpp @@ -52,7 +52,6 @@ bool does_full_buffer_contain_correct_color(GrColor* srcBuffer, void basic_texture_test(skiatest::Reporter* reporter, GrContext* context, GrPixelConfig config, bool renderTarget, bool linearTiling) { GrVkGpu* gpu = static_cast<GrVkGpu*>(context->getGpu()); - gpu->discard(NULL); const int kWidth = 16; const int kHeight = 16; |