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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |