Lines Matching refs:paint

132     SkPaint paint;  in DEF_TEST()  local
134 paint.setStyle(SkPaint::kStrokeAndFill_Style); in DEF_TEST()
135 paint.setStrokeWidth(SkIntToScalar(2)); in DEF_TEST()
138 paint.setLooper(looperBuilder.detach()); in DEF_TEST()
139 paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, in DEF_TEST()
143 SkPaint copiedPaint = paint; in DEF_TEST()
144 REPORTER_ASSERT(reporter, paint.getHash() == copiedPaint.getHash()); in DEF_TEST()
145 REPORTER_ASSERT(reporter, paint == copiedPaint); in DEF_TEST()
148 copiedPaint = paint; in DEF_TEST()
149 REPORTER_ASSERT(reporter, paint == copiedPaint); in DEF_TEST()
153 paint.reset(); in DEF_TEST()
155 REPORTER_ASSERT(reporter, cleanPaint == paint); in DEF_TEST()
163 SkPaint paint; in DEF_TEST() local
177 paint.setStyle(SkPaint::kStroke_Style); in DEF_TEST()
178 paint.setStrokeWidth(SkIntToScalar(2)); in DEF_TEST()
179 paint.getFillPath(path, &stroke); in DEF_TEST()
183 SkScalar miter = SkMaxScalar(SK_Scalar1, paint.getStrokeMiter()); in DEF_TEST()
184 SkScalar inset = paint.getStrokeJoin() == SkPaint::kMiter_Join ? in DEF_TEST()
185 paint.getStrokeWidth() * miter : in DEF_TEST()
186 paint.getStrokeWidth(); in DEF_TEST()
218 paint.setter(array[index]); in DEF_TEST()
220 SkPaint paint; in DEF_TEST() local
221 paint.setAntiAlias(true); in DEF_TEST()
231 SkPaintPriv::Flatten(paint, writer); in DEF_TEST()
239 REPORTER_ASSERT(reporter, paint2 == paint); in DEF_TEST()
263 SkPaint paint;
264 paint.setColor(0x00AABBCC);
265 paint.setBlendMode(SkBlendMode::kModulate);
266 paint.setLooper(nullptr); // Default value, ignored.
269 SkPaintPriv::Flatten(paint, writer);
280 ASSERT(other.getColor() == paint.getColor());
281 ASSERT(other.getLooper() == paint.getLooper());
282 ASSERT(other.getBlendMode() == paint.getBlendMode());
289 SkPaint paint;
290 const uint32_t defaultHash = paint.getHash();
293 paint.setColor(0xFF00FF00);
294 REPORTER_ASSERT(r, paint.getHash() != defaultHash);
295 paint.setColor(SK_ColorBLACK); // Reset to default value.
296 REPORTER_ASSERT(r, paint.getHash() == defaultHash);
299 paint.setBlendMode(SkBlendMode::kSrc);
300 REPORTER_ASSERT(r, paint.getHash() != defaultHash);
301 paint.setBlendMode(SkBlendMode::kSrcOver);
302 REPORTER_ASSERT(r, paint.getHash() == defaultHash);
308 SkPaint paint;
310 REPORTER_ASSERT(r, !paint.nothingToDraw());
311 paint.setAlpha(0);
312 REPORTER_ASSERT(r, paint.nothingToDraw());
314 paint.setAlpha(0xFF);
315 paint.setBlendMode(SkBlendMode::kDst);
316 REPORTER_ASSERT(r, paint.nothingToDraw());
318 paint.setAlpha(0);
319 paint.setBlendMode(SkBlendMode::kSrcOver);
323 paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat));
324 REPORTER_ASSERT(r, paint.nothingToDraw());
327 paint.setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(cm.fMat));
328 REPORTER_ASSERT(r, !paint.nothingToDraw());