OLD | NEW |
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 Loading... |
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 |
OLD | NEW |