Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d39ded73 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Fix TextViewPRecomputedTextPerfTest

Bug: N/A
Test: manually
Change-Id: I22c135b246ce288f1729b1622e4307d68af6b61a
parent 25eb63ac
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -343,13 +343,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();

            textView.onDraw(c);
            node.endRecording();
        }
    }

@@ -369,13 +370,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();

            textView.onDraw(c);
            node.endRecording();
        }
    }

@@ -397,13 +399,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();

            textView.onDraw(c);
            node.endRecording();
        }
    }

@@ -426,13 +429,14 @@ public class TextViewPrecomputedTextPerfTest {
            textView.setText(text);
            textView.measure(width, height);
            textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight());
            final RecordingCanvas c = node.start(
            final RecordingCanvas c = node.startRecording(
                textView.getMeasuredWidth(), textView.getMeasuredHeight());
            textView.nullLayouts();
            Canvas.freeTextLayoutCaches();
            state.resumeTiming();

            textView.onDraw(c);
            node.endRecording();
        }
    }
}