Searched refs:skRect (Results 1 – 2 of 2) sorted by relevance
/external/skia/tests/graphite/ |
D | RectTest.cpp | 19 const SkRect skRect = SkRect::MakeLTRB(1,-3,4,0); in DEF_GRAPHITE_TEST() local 20 const Rect rect = skRect; in DEF_GRAPHITE_TEST() 22 CHECK(rect == skRect); // promotes 'skRect' to a Rect for == in DEF_GRAPHITE_TEST() 23 CHECK(rect.asSkRect() == skRect); // converts 'rect' to SkRect for == in DEF_GRAPHITE_TEST() 86 CHECK(rect.intersects(rect2) == skRect.intersects(skRect2)); in DEF_GRAPHITE_TEST() 87 CHECK(rect.contains(rect2) == skRect.contains(skRect2)); in DEF_GRAPHITE_TEST() 88 CHECK(rect2.contains(rect) == skRect2.contains(skRect)); in DEF_GRAPHITE_TEST() 98 SkRect skJoin = skRect; in DEF_GRAPHITE_TEST() 106 CHECK(skRect.intersects(skRect2)); in DEF_GRAPHITE_TEST() 108 CHECK(skIsect.intersect(skRect, skRect2)); in DEF_GRAPHITE_TEST()
|
/external/pdfium/core/fxge/skia/ |
D | fx_skia_device.cpp | 1379 SkRect skRect = SkRect::MakeLTRB(clip_rect.left, clip_rect.top, in DrawShading() local 1401 skRect.fTop = std::max(skRect.fTop, pts[0].fY); in DrawShading() 1403 skRect.fBottom = std::min(skRect.fBottom, pts[1].fY); in DrawShading() 1410 skRect.fLeft = std::max(skRect.fLeft, pts[0].fX); in DrawShading() 1412 skRect.fRight = std::min(skRect.fRight, pts[1].fX); in DrawShading() 1414 SkPoint rectPts[4] = {{skRect.fLeft, skRect.fTop}, in DrawShading() 1415 {skRect.fRight, skRect.fTop}, in DrawShading() 1416 {skRect.fRight, skRect.fBottom}, in DrawShading() 1417 {skRect.fLeft, skRect.fBottom}}; in DrawShading() 1421 skPath.addRect(skRect); in DrawShading() [all …]
|