From 918e144408ba218df919528f8b48c544f4767883 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 23 Jan 2017 11:39:45 -0500 Subject: change clip-bounds getters to always return the rect (actually fixes undefined result in getClipBounds) future CLs - update all callers to new apis - move/rename virtuals BUG=skia: DOCS_PREVIEW= https://skia.org/?cl=7400 Change-Id: I45b93014e915c0d1c36d97d948c9ac8931f23258 Reviewed-on: https://skia-review.googlesource.com/7400 Reviewed-by: Brian Salomon Reviewed-by: Cary Clark Commit-Queue: Mike Reed --- tests/CanvasStateTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/CanvasStateTest.cpp') diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp index 38fb3fe8bc..19824fa68a 100644 --- a/tests/CanvasStateTest.cpp +++ b/tests/CanvasStateTest.cpp @@ -326,7 +326,7 @@ DEF_TEST(CanvasState_test_saveLayer_clip, reporter) { SkIRect devClip; // Check that saveLayer without the kClipToLayer_SaveFlag leaves the clip unchanged. canvas.saveLayer(SkCanvas::SaveLayerRec(&bounds, nullptr, dontSaveFlag)); - canvas.getClipDeviceBounds(&devClip); + devClip = canvas.getDeviceClipBounds(); REPORTER_ASSERT(reporter, canvas.isClipRect()); REPORTER_ASSERT(reporter, devClip.width() == WIDTH); REPORTER_ASSERT(reporter, devClip.height() == HEIGHT); @@ -335,7 +335,7 @@ DEF_TEST(CanvasState_test_saveLayer_clip, reporter) { // Check that saveLayer with the kClipToLayer_SaveFlag sets the clip // stack to the layer bounds. canvas.saveLayer(&bounds, nullptr); - canvas.getClipDeviceBounds(&devClip); + devClip = canvas.getDeviceClipBounds(); REPORTER_ASSERT(reporter, canvas.isClipRect()); REPORTER_ASSERT(reporter, devClip.width() == LAYER_WIDTH); REPORTER_ASSERT(reporter, devClip.height() == LAYER_HEIGHT); -- cgit v1.2.3