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

Side by Side Diff: tests/VkClearTests.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/TextBlobCacheTest.cpp ('k') | tests/VkUploadPixelsTests.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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 gpu->readPixels(tex, subWidth, subHeight, subWidth, subHeight, 190 gpu->readPixels(tex, subWidth, subHeight, subWidth, subHeight,
191 config, (void*)subBuffer.get(), 0); 191 config, (void*)subBuffer.get(), 0);
192 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(subBuffer.g et(), 192 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(subBuffer.g et(),
193 subColor4, 193 subColor4,
194 config, 194 config,
195 subWidth, 195 subWidth,
196 subHeight)) ; 196 subHeight)) ;
197 } 197 }
198 198
199 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkClearTests, reporter, ctxInfo) { 199 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkClearTests, reporter, ctxInfo) {
200 basic_clear_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig); 200 basic_clear_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig);
201 basic_clear_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig); 201 basic_clear_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig);
202 sub_clear_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig); 202 sub_clear_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig);
203 sub_clear_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig); 203 sub_clear_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig);
204 } 204 }
205 205
206 #endif 206 #endif
OLDNEW
« no previous file with comments | « tests/TextBlobCacheTest.cpp ('k') | tests/VkUploadPixelsTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698