From 9447103029273a9f8dd7f5997e8af7a1e3ee7488 Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Mon, 25 Feb 2013 15:55:13 +0000 Subject: Always round text position correctly. https://codereview.appspot.com/7383049/ Will require rebaseline of fontscaler GM. Must add SK_IGNORE_SUBPIXEL_AXIS_ALIGN_FIX to Chromium until ~150 layout tests can be rebaselined. git-svn-id: http://skia.googlecode.com/svn/trunk@7842 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/FontHostTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/FontHostTest.cpp') diff --git a/tests/FontHostTest.cpp b/tests/FontHostTest.cpp index 4cd7812eeb..5c43128257 100644 --- a/tests/FontHostTest.cpp +++ b/tests/FontHostTest.cpp @@ -145,7 +145,7 @@ static void test_advances(skiatest::Reporter* reporter) { char txt[] = "long.text.with.lots.of.dots."; for (size_t i = 0; i < SK_ARRAY_COUNT(faces); i++) { - SkTypeface* face = SkTypeface::CreateFromName(faces[i], SkTypeface::kNormal); + SkAutoTUnref face(SkTypeface::CreateFromName(faces[i], SkTypeface::kNormal)); paint.setTypeface(face); for (size_t j = 0; j < SK_ARRAY_COUNT(settings); j++) { -- cgit v1.2.3