diff options
| author | 2015-01-15 18:21:33 +0000 | |
|---|---|---|
| committer | 2015-01-15 18:21:35 +0000 | |
| commit | f28f5cec5644ed175c8ad7a59b5d20b33ee89bc8 (patch) | |
| tree | 131a045645ffd3596cfe47583b804a8fb3165629 /libs/hwui/CanvasState.h | |
| parent | 45a669e5e9aba0feeca4f768a09299a2f88a2d3f (diff) | |
| parent | 487a92caef2eb90a62e8f8d7a6fe6315f1c1d8d8 (diff) | |
Merge "Clipping performance improvements"
Diffstat (limited to 'libs/hwui/CanvasState.h')
| -rw-r--r-- | libs/hwui/CanvasState.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/hwui/CanvasState.h b/libs/hwui/CanvasState.h index 9e6a9c3cf63b..121112b8e078 100644 --- a/libs/hwui/CanvasState.h +++ b/libs/hwui/CanvasState.h @@ -120,10 +120,6 @@ public: bool clipPath(const SkPath* path, SkRegion::Op op); bool clipRegion(const SkRegion* region, SkRegion::Op op); - bool isCurrentClipSimple() const { - return currentSnapshot()->clipRegion->isEmpty(); - } - /** * Sets a "clipping outline", which is independent from the regular clip. * Currently only supports rectangles or rounded rectangles; passing in a @@ -150,7 +146,7 @@ public: void setInvisible(bool value) { mSnapshot->invisible = value; } inline const mat4* currentTransform() const { return currentSnapshot()->transform; } - inline const Rect* currentClipRect() const { return currentSnapshot()->clipRect; } + inline const Rect& currentClipRect() const { return currentSnapshot()->getClipRect(); } inline Region* currentRegion() const { return currentSnapshot()->region; } inline int currentFlags() const { return currentSnapshot()->flags; } const Vector3& currentLightCenter() const { return currentSnapshot()->getRelativeLightCenter(); } |