diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-04-01 14:20:02 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-04-01 14:20:02 -0700 |
| commit | ca2852bfdd5f5888d947919677fcf7bdcd09f0ad (patch) | |
| tree | fbfb14984a00f582aaaec5095a18d6da8b37b5e6 /src/skia-tests/text.cpp | |
| parent | 89568c15678aec37206f78324354a39ff6868e8a (diff) | |
text: Disable LCD filtering
LCD filtering does not appear to be turned on for Cairo, and seriously
slows down text rendering.
Patch thanks to Suyambulingam Rathinasamy Muthupandi
<suyambu.rm@samsung.com>.
Diffstat (limited to 'src/skia-tests/text.cpp')
| -rw-r--r-- | src/skia-tests/text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/skia-tests/text.cpp b/src/skia-tests/text.cpp index cfc32a1..cfd8dda 100644 --- a/src/skia-tests/text.cpp +++ b/src/skia-tests/text.cpp @@ -35,7 +35,7 @@ sk_test_text(caskbench_context_t *ctx) green = int( 255 * (double)rand()/RAND_MAX ); blue = int( 255 * (double)rand()/RAND_MAX ); alpha = int( 255 * (double)rand()/RAND_MAX ); - ctx->skia_paint->setLCDRenderText(true); + ctx->skia_paint->setLCDRenderText(false); ctx->skia_paint->setARGB(alpha, red, green, blue); ctx->skia_canvas->drawText(text.c_str(), text.size(), 150, 50, *ctx->skia_paint); } |