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

Side by Side Diff: tests/VkUploadPixelsTests.cpp

Issue 1966013002: Turn ContextInfos returned by GrContextFactory into structs. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Address comment Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « tests/VkClearTests.cpp ('k') | tests/VkWrapTests.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 // This is a GPU-backend specific test. It relies on static intializers to work 8 // This is a GPU-backend specific test. It relies on static intializers to work
9 9
10 #include "SkTypes.h" 10 #include "SkTypes.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 4, 127 4,
128 5)); 128 5));
129 129
130 tex1->unref(); 130 tex1->unref();
131 } else { 131 } else {
132 REPORTER_ASSERT(reporter, !canCreate); 132 REPORTER_ASSERT(reporter, !canCreate);
133 } 133 }
134 } 134 }
135 135
136 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkUploadPixelsTests, reporter, ctxInfo) { 136 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkUploadPixelsTests, reporter, ctxInfo) {
137 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, f alse, false); 137 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, false, false);
138 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, t rue, false); 138 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, true, false);
139 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, f alse, true); 139 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, false, true);
140 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, t rue, true); 140 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig, true, true);
141 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, f alse, false); 141 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, false, false);
142 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, t rue, false); 142 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, true, false);
143 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, f alse, true); 143 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, false, true);
144 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, t rue, true); 144 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig, true, true);
145 } 145 }
146 146
147 #endif 147 #endif
OLDNEW
« no previous file with comments | « tests/VkClearTests.cpp ('k') | tests/VkWrapTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698