• Home
  • Raw
  • Download

Lines Matching refs:paint

15     SkPaint paint;  in test_copy()  local
17 paint.setStyle(SkPaint::kStrokeAndFill_Style); in test_copy()
18 paint.setTextAlign(SkPaint::kLeft_Align); in test_copy()
19 paint.setStrokeWidth(SkIntToScalar(2)); in test_copy()
22 paint.setLooper(looper)->unref(); in test_copy()
24 paint.setMaskFilter(mask)->unref(); in test_copy()
27 SkPaint copiedPaint = paint; in test_copy()
28 REPORTER_ASSERT(reporter, paint == copiedPaint); in test_copy()
32 int32_t paintGenID = paint.getGenerationID(); in test_copy()
35 REPORTER_ASSERT(reporter, !memcmp(&paint, &copiedPaint, sizeof(paint))); in test_copy()
39 copiedPaint = paint; in test_copy()
40 REPORTER_ASSERT(reporter, paint == copiedPaint); in test_copy()
44 REPORTER_ASSERT(reporter, paint.getGenerationID() == paintGenID); in test_copy()
47 REPORTER_ASSERT(reporter, memcmp(&paint, &copiedPaint, sizeof(paint))); in test_copy()
52 paint.reset(); in test_copy()
54 REPORTER_ASSERT(reporter, cleanPaint == paint); in test_copy()
59 REPORTER_ASSERT(reporter, paint.getGenerationID() != paintGenID); in test_copy()
61 REPORTER_ASSERT(reporter, memcmp(&cleanPaint, &paint, sizeof(cleanPaint))); in test_copy()
70 SkPaint paint; in regression_cubic() local
84 paint.setStyle(SkPaint::kStroke_Style); in regression_cubic()
85 paint.setStrokeWidth(SkIntToScalar(2)); in regression_cubic()
86 paint.getFillPath(path, &stroke); in regression_cubic()
90 SkScalar miter = SkMaxScalar(SK_Scalar1, paint.getStrokeMiter()); in regression_cubic()
91 SkScalar inset = paint.getStrokeJoin() == SkPaint::kMiter_Join ? in regression_cubic()
92 SkScalarMul(paint.getStrokeWidth(), miter) : in regression_cubic()
93 paint.getStrokeWidth(); in regression_cubic()