Home
last modified time | relevance | path

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

/third_party/skia/src/image/
DSkSurface.cpp213 const SkIRect surfBounds = { 0, 0, fWidth, fHeight }; in makeImageSnapshot() local
215 if (!bounds.intersect(surfBounds)) { in makeImageSnapshot()
219 if (bounds == surfBounds) { in makeImageSnapshot()
/third_party/skia/tests/
DReadWritePixelsGpuTest.cpp252 const auto surfBounds = SkIRect::MakeWH(srcPixels.width(), srcPixels.height()); in gpu_read_pixels_test_driver() local
270 if (!SkIRect::Intersects(rect, surfBounds)) { in gpu_read_pixels_test_driver()
276 } else if (!rules.fUncontainedRectSucceeds && !surfBounds.contains(rect)) { in gpu_read_pixels_test_driver()
298 if (result == Result::kSuccess && srcReadRect.intersect(surfBounds, rect)) { in gpu_read_pixels_test_driver()
827 const auto surfBounds = SkIRect::MakeSize(dstInfo.dimensions()); in gpu_write_pixels_test_driver() local
841 if (!SkIRect::Intersects(rect, surfBounds)) { in gpu_write_pixels_test_driver()
863 if (result != Result::kSuccess || !checkRect.intersect(surfBounds, rect)) { in gpu_write_pixels_test_driver()