Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: tests/VkClearTests.cpp

Issue 2078483002: Start using GrGpuCommandBuffer in GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@memoryWAR
Patch Set: remove errant lines Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/vk/GrVkResourceProvider.cpp ('k') | tests/VkUploadPixelsTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/VkClearTests.cpp
diff --git a/tests/VkClearTests.cpp b/tests/VkClearTests.cpp
index 4a8c9667813ff551048e3939605de3093c2aff38..cced84439d9e5db1dc5a2e0f1a32f17ec3a90c00 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) {
« no previous file with comments | « src/gpu/vk/GrVkResourceProvider.cpp ('k') | tests/VkUploadPixelsTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698