From b29b16e5423fe7deab8ebf3da512c6d2192f19b5 Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 4 Jan 2017 14:57:43 -0500 Subject: Remove clipRegion from the public API. This API is difficult to support for printing and has other negative effects as it does not respect the current matrix/clip. Test: compile Bug: 14650725 Change-Id: I71f9bd687d446c7ce8910d755421aad8e09458db --- libs/hwui/CanvasState.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libs/hwui/CanvasState.cpp') diff --git a/libs/hwui/CanvasState.cpp b/libs/hwui/CanvasState.cpp index dbbf00d8bdec..9c068b080d45 100644 --- a/libs/hwui/CanvasState.cpp +++ b/libs/hwui/CanvasState.cpp @@ -212,11 +212,6 @@ bool CanvasState::clipPath(const SkPath* path, SkClipOp op) { return !mSnapshot->clipIsEmpty(); } -bool CanvasState::clipRegion(const SkRegion* region, SkClipOp op) { - mSnapshot->clipRegionTransformed(*region, op); - return !mSnapshot->clipIsEmpty(); -} - void CanvasState::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { Rect bounds; float radius; -- cgit v1.2.3-59-g8ed1b