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

Side by Side Diff: tests/TextBlobCacheTest.cpp

Issue 1270793003: Add BW masks to random scaler context (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 5 years, 4 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 | « src/fonts/SkRandomScalerContext.cpp ('k') | no next file » | 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 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPaint.h" 10 #include "SkPaint.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 ctx->abandonContext(); 149 ctx->abandonContext();
150 draw(canvas, 1, blobs); 150 draw(canvas, 1, blobs);
151 } 151 }
152 152
153 DEF_GPUTEST(TextBlobCache, reporter, factory) { 153 DEF_GPUTEST(TextBlobCache, reporter, factory) {
154 text_blob_cache_inner(reporter, factory, 4096, 256, 30, true); 154 text_blob_cache_inner(reporter, factory, 4096, 256, 30, true);
155 } 155 }
156 156
157 DEF_GPUTEST(TextBlobAbnormal, reporter, factory) { 157 DEF_GPUTEST(TextBlobAbnormal, reporter, factory) {
158 #ifdef SK_BUILD_FOR_ANDROID 158 #ifdef SK_BUILD_FOR_ANDROID
159 text_blob_cache_inner(reporter, factory, 32, 32, 1, false); 159 text_blob_cache_inner(reporter, factory, 256, 256, 30, false);
160 #else 160 #else
161 text_blob_cache_inner(reporter, factory, 256, 256, 1, false); 161 text_blob_cache_inner(reporter, factory, 512, 256, 30, false);
162 #endif 162 #endif
163 } 163 }
164 #endif 164 #endif
OLDNEW
« no previous file with comments | « src/fonts/SkRandomScalerContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698