Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index edd336afdf04c5867e6fe512cf67121932013083..dd746404015f4e13e676b1435f22502c85060fdc 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -632,10 +632,7 @@ static int lcanvas_getClipStack(lua_State* L) { |
int SkLua::lcanvas_getReducedClipStack(lua_State* L) { |
#if SK_SUPPORT_GPU |
const SkCanvas* canvas = get_ref<SkCanvas>(L, 1); |
- SkISize layerSize = canvas->getTopLayerSize(); |
- SkIPoint layerOrigin = canvas->getTopLayerOrigin(); |
- SkIRect queryBounds = SkIRect::MakeXYWH(layerOrigin.fX, layerOrigin.fY, |
- layerSize.fWidth, layerSize.fHeight); |
+ SkIRect queryBounds = canvas->getTopLayerBounds(); |
GrReducedClip::ElementList elements; |
GrReducedClip::InitialState initialState; |