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

Side by Side Diff: tests/TextBlobCacheTest.cpp

Issue 1860593002: One signature for creating unit tests that run on premade GrContexts (Closed) Base URL: https://skia.googlesource.com/skia.git@try_no_native
Patch Set: another guess to fix windows Created 4 years, 8 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/TestTest.cpp ('k') | tests/TextureStorageAllocator.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 #include "sk_tool_utils.h" 8 #include "sk_tool_utils.h"
9 9
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 draw(canvas, 1, blobs); 149 draw(canvas, 1, blobs);
150 150
151 context->freeGpuResources(); 151 context->freeGpuResources();
152 draw(canvasNoLCD, 1, blobs); 152 draw(canvasNoLCD, 1, blobs);
153 153
154 // test draw after abandon 154 // test draw after abandon
155 context->abandonContext(); 155 context->abandonContext();
156 draw(canvas, 1, blobs); 156 draw(canvas, 1, blobs);
157 } 157 }
158 158
159 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobCache, reporter, context) { 159 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobCache, reporter, ctxInfo) {
160 text_blob_cache_inner(reporter, context, 1024, 256, 30, true, false); 160 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 1024, 256, 30, true, fal se);
161 } 161 }
162 162
163 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobStressCache, reporter, context) { 163 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobStressCache, reporter, ctxInfo) {
164 text_blob_cache_inner(reporter, context, 256, 256, 10, true, true); 164 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 256, 256, 10, true, true );
165 } 165 }
166 166
167 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobAbnormal, reporter, context) { 167 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobAbnormal, reporter, ctxInfo) {
168 text_blob_cache_inner(reporter, context, 256, 256, 10, false, false); 168 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 256, 256, 10, false, fal se);
169 } 169 }
170 170
171 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobStressAbnormal, reporter, context) { 171 DEF_GPUTEST_FOR_NULL_CONTEXT(TextBlobStressAbnormal, reporter, ctxInfo) {
172 text_blob_cache_inner(reporter, context, 256, 256, 10, false, true); 172 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 256, 256, 10, false, tru e);
173 } 173 }
174 #endif 174 #endif
OLDNEW
« no previous file with comments | « tests/TestTest.cpp ('k') | tests/TextureStorageAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698