Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: src/utils/SkLua.cpp

Issue 2160093002: Allow GrReducedClip to take non-integer query bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix tests on ubuntu Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLIRect.h ('k') | tests/ClipStackTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkLua.cpp
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index d2ff5551af1854095c8cc654014bb03131134f18..a3a1685eae897625dc22b0f722ca081ffe98374d 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -638,12 +638,12 @@ 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);
- SkIRect queryBounds = canvas->getTopLayerBounds();
+ SkRect queryBounds = SkRect::Make(canvas->getTopLayerBounds());
GrReducedClip::ElementList elements;
- GrReducedClip::InitialState initialState;
int32_t genID;
SkIRect resultBounds;
+ bool requiresAA;
const SkClipStack& stack = *canvas->getClipStack();
@@ -651,9 +651,8 @@ int SkLua::lcanvas_getReducedClipStack(lua_State* L) {
queryBounds,
&elements,
&genID,
- &initialState,
&resultBounds,
- nullptr);
+ &requiresAA);
GrReducedClip::ElementList::Iter iter(elements);
int i = 0;
« no previous file with comments | « src/gpu/gl/GrGLIRect.h ('k') | tests/ClipStackTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698