Home
last modified time | relevance | path

Searched refs:kSrcImageClip (Results 1 – 2 of 2) sorted by relevance

/external/skia/gm/
Dcroppedrects.cpp25 constexpr SkRect kSrcImageClip{75, 75, 275, 275}; variable
49 srcCanvas->drawRect(kSrcImageClip, paint); in onOnceBeforeDraw()
56 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke); in onOnceBeforeDraw()
70 canvas->clipRect(kSrcImageClip); in onDraw()
80 kSrcImageClip.makeOutset(0.5f * kSrcImageClip.width(), in onDraw()
81 kSrcImageClip.height()), in onDraw()
91 {kSrcImageClip.fLeft - kSrcImageClip.width(), kSrcImageClip.centerY()}, in onDraw()
92 {kSrcImageClip.fRight + 3 * kSrcImageClip.width(), kSrcImageClip.centerY()}); in onDraw()
95 paint.setStrokeWidth(2 * kSrcImageClip.height()); in onDraw()
98 canvas->scale(300 / kSrcImageClip.width(), 100 / kSrcImageClip.height()); in onDraw()
[all …]
/external/skqp/gm/
Dcroppedrects.cpp16 constexpr SkRect kSrcImageClip{75, 75, 275, 275}; variable
40 srcCanvas->drawRect(kSrcImageClip, paint); in onOnceBeforeDraw()
47 srcCanvas->drawRect(kSrcImageClip.makeInset(kStrokeWidth / 2, kStrokeWidth / 2), stroke); in onOnceBeforeDraw()
62 canvas->clipRect(kSrcImageClip); in onDraw()
74 kSrcImageClip.makeOutset(0.5f * kSrcImageClip.width(), in onDraw()
75 kSrcImageClip.height()), in onDraw()
84 path.moveTo(kSrcImageClip.fLeft - kSrcImageClip.width(), kSrcImageClip.centerY()); in onDraw()
85 path.lineTo(kSrcImageClip.fRight + 3 * kSrcImageClip.width(), kSrcImageClip.centerY()); in onDraw()
88 paint.setStrokeWidth(2 * kSrcImageClip.height()); in onDraw()
92 canvas->scale(300 / kSrcImageClip.width(), 100 / kSrcImageClip.height()); in onDraw()
[all …]