| Index: src/utils/SkLua.cpp
|
| diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
|
| index 3a335ad17c589441574fbe3b608fac4f8f2bd1eb..8ea9eee5fc14aee672f4f53c26bf1e8b23d0eedc 100644
|
| --- a/src/utils/SkLua.cpp
|
| +++ b/src/utils/SkLua.cpp
|
| @@ -644,22 +644,9 @@ int SkLua::lcanvas_getReducedClipStack(lua_State* L) {
|
| #if SK_SUPPORT_GPU
|
| const SkCanvas* canvas = get_ref<SkCanvas>(L, 1);
|
| SkRect queryBounds = SkRect::Make(canvas->getTopLayerBounds());
|
| + const GrReducedClip reducedClip(*canvas->getClipStack(), queryBounds);
|
|
|
| - GrReducedClip::ElementList elements;
|
| - int32_t genID;
|
| - SkIRect resultBounds;
|
| - bool requiresAA;
|
| -
|
| - const SkClipStack& stack = *canvas->getClipStack();
|
| -
|
| - GrReducedClip::ReduceClipStack(stack,
|
| - queryBounds,
|
| - &elements,
|
| - &genID,
|
| - &resultBounds,
|
| - &requiresAA);
|
| -
|
| - GrReducedClip::ElementList::Iter iter(elements);
|
| + GrReducedClip::ElementList::Iter iter(reducedClip.elements());
|
| int i = 0;
|
| lua_newtable(L);
|
| while(iter.get()) {
|
|
|