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

Unified Diff: src/utils/SkLua.cpp

Issue 801693003: Fill SkRRect::fType proactively. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: debug only Created 6 years 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/effects/SkBlurMaskFilter.cpp ('k') | no next file » | 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 baddb1a19c0c2d88cc7eb53b39cd6e67b3ac9ba0..2370b9925c59a82f43a6d86971dcc0164e035df9 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -187,7 +187,7 @@ static SkScalar lua2scalar_def(lua_State* L, int index, SkScalar defaultValue) {
static SkScalar getarray_scalar(lua_State* L, int stackIndex, int arrayIndex) {
SkASSERT(lua_istable(L, stackIndex));
lua_rawgeti(L, stackIndex, arrayIndex);
-
+
SkScalar value = lua2scalar(L, -1);
lua_pop(L, 1);
return value;
@@ -404,7 +404,7 @@ static SkScalar getfield_scalar(lua_State* L, int index, const char key[]) {
SkASSERT(lua_istable(L, index));
lua_pushstring(L, key);
lua_gettable(L, index);
-
+
SkScalar value = lua2scalar(L, -1);
lua_pop(L, 1);
return value;
@@ -533,7 +533,7 @@ static int lcanvas_drawImageRect(lua_State* L) {
srcRPtr = lua2rect(L, 3, &srcR);
}
lua2rect(L, 4, &dstR);
-
+
SkPaint paint;
canvas->drawImageRect(image, srcRPtr, dstR, lua2OptionalPaint(L, 5, &paint));
return 0;
@@ -1579,7 +1579,6 @@ static const struct luaL_Reg gSkPath_Methods[] = {
static const char* rrect_type(const SkRRect& rr) {
switch (rr.getType()) {
- case SkRRect::kUnknown_Type: return "unknown";
case SkRRect::kEmpty_Type: return "empty";
case SkRRect::kRect_Type: return "rect";
case SkRRect::kOval_Type: return "oval";
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698