Lines Matching refs:s2

91         SkStrokeRec s2(SkStrokeRec::kFill_InitStyle);  in test_strokerec_equality()  local
92 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
95 s2.setHairlineStyle(); in test_strokerec_equality()
96 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); in test_strokerec_equality()
99 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
103 s2.setResScale(1.2f); in test_strokerec_equality()
104 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
106 s2.setFillStyle(); in test_strokerec_equality()
107 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
109 s2.setStrokeStyle(1.0f, false); in test_strokerec_equality()
111 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
112 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
118 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality() local
121 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.1f); in test_strokerec_equality()
122 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
123 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kBevel_Join, 2.9f); in test_strokerec_equality()
124 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
125 s2.setStrokeParams(SkPaint::kRound_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
126 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
128 s2.setHairlineStyle(); in test_strokerec_equality()
135 SkStrokeRec s2(SkStrokeRec::kFill_InitStyle); in test_strokerec_equality() local
137 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
140 s2.setStrokeStyle(1.0f, true); in test_strokerec_equality()
141 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); in test_strokerec_equality()
143 s2.setStrokeStyle(2.1f, false); in test_strokerec_equality()
144 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); in test_strokerec_equality()
146 s2.setStrokeStyle(1.0f, false); in test_strokerec_equality()
147 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()
149 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kRound_Join, 2.1f); in test_strokerec_equality()
150 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); in test_strokerec_equality()
151 s2.setStrokeParams(SkPaint::kButt_Cap, SkPaint::kBevel_Join, 2.9f); in test_strokerec_equality()
152 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); in test_strokerec_equality()
153 s2.setStrokeParams(SkPaint::kRound_Cap, SkPaint::kRound_Join, 2.9f); in test_strokerec_equality()
154 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); in test_strokerec_equality()
158 s2.setStrokeStyle(0.0f, true); in test_strokerec_equality()
159 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); in test_strokerec_equality()