예제 #1
0
    virtual void onDraw(SkCanvas* canvas) {
        SkPaint paint;
        this->setupPaint(&paint);

        for (int i = 0; i < N; ++i) {
            SkAAClip clip;
            if (fDoPath) {
                clip.setPath(fPath, &fRegion, fDoAA);
            } else {
                clip.setRect(fRect, fDoAA);
            }
        }
    }
예제 #2
0
파일: AAClipTest.cpp 프로젝트: Just-D/skia
static void test_regressions() {
    // these should not assert in the debug build
    // bug was introduced in rev. 3209
    {
        SkAAClip clip;
        SkRect r;
        r.fLeft = 129.892181f;
        r.fTop = 10.3999996f;
        r.fRight = 130.892181f;
        r.fBottom = 20.3999996f;
        clip.setRect(r, true);
    }
}
예제 #3
0
파일: SampleClip.cpp 프로젝트: ghub/NVprSDK
 ClipView() {
     SkAAClip clip;
     SkIRect r = { -2, -3, 842, 18 };
     clip.setRect(r);
 }