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

Side by Side Diff: tests/TextBlobCacheTest.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/TestTest.cpp ('k') | tests/VkClearTests.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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_NULLGL_CONTEXT(TextBlobCache, reporter, ctxInfo) { 159 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobCache, reporter, ctxInfo) {
160 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 1024, 256, 30, true, fal se); 160 text_blob_cache_inner(reporter, ctxInfo.grContext(), 1024, 256, 30, true, fa lse);
161 } 161 }
162 162
163 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobStressCache, reporter, ctxInfo) { 163 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobStressCache, reporter, ctxInfo) {
164 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 256, 256, 10, true, true ); 164 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, true, tru e);
165 } 165 }
166 166
167 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobAbnormal, reporter, ctxInfo) { 167 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobAbnormal, reporter, ctxInfo) {
168 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 256, 256, 10, false, fal se); 168 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, false, fa lse);
169 } 169 }
170 170
171 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobStressAbnormal, reporter, ctxInfo) { 171 DEF_GPUTEST_FOR_NULLGL_CONTEXT(TextBlobStressAbnormal, reporter, ctxInfo) {
172 text_blob_cache_inner(reporter, ctxInfo.fGrContext, 256, 256, 10, false, tru e); 172 text_blob_cache_inner(reporter, ctxInfo.grContext(), 256, 256, 10, false, tr ue);
173 } 173 }
174 #endif 174 #endif
OLDNEW
« no previous file with comments | « tests/TestTest.cpp ('k') | tests/VkClearTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698