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

Side by Side Diff: src/utils/SkLua.cpp

Issue 202163004: Revert of Add nine patch type to SkRRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/utils/debugger/SkObjectParser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkLua.h" 8 #include "SkLua.h"
9 9
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1201
1202 /////////////////////////////////////////////////////////////////////////////// 1202 ///////////////////////////////////////////////////////////////////////////////
1203 1203
1204 static const char* rrect_type(const SkRRect& rr) { 1204 static const char* rrect_type(const SkRRect& rr) {
1205 switch (rr.getType()) { 1205 switch (rr.getType()) {
1206 case SkRRect::kUnknown_Type: return "unknown"; 1206 case SkRRect::kUnknown_Type: return "unknown";
1207 case SkRRect::kEmpty_Type: return "empty"; 1207 case SkRRect::kEmpty_Type: return "empty";
1208 case SkRRect::kRect_Type: return "rect"; 1208 case SkRRect::kRect_Type: return "rect";
1209 case SkRRect::kOval_Type: return "oval"; 1209 case SkRRect::kOval_Type: return "oval";
1210 case SkRRect::kSimple_Type: return "simple"; 1210 case SkRRect::kSimple_Type: return "simple";
1211 case SkRRect::kNinePatch_Type: return "nine-patch";
1212 case SkRRect::kComplex_Type: return "complex"; 1211 case SkRRect::kComplex_Type: return "complex";
1213 } 1212 }
1214 SkDEBUGFAIL("never get here"); 1213 SkDEBUGFAIL("never get here");
1215 return ""; 1214 return "";
1216 } 1215 }
1217 1216
1218 static int lrrect_rect(lua_State* L) { 1217 static int lrrect_rect(lua_State* L) {
1219 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect()); 1218 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect());
1220 return 1; 1219 return 1;
1221 } 1220 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 REG_CLASS(L, SkShader); 1424 REG_CLASS(L, SkShader);
1426 REG_CLASS(L, SkTypeface); 1425 REG_CLASS(L, SkTypeface);
1427 REG_CLASS(L, SkMatrix); 1426 REG_CLASS(L, SkMatrix);
1428 } 1427 }
1429 1428
1430 extern "C" int luaopen_skia(lua_State* L); 1429 extern "C" int luaopen_skia(lua_State* L);
1431 extern "C" int luaopen_skia(lua_State* L) { 1430 extern "C" int luaopen_skia(lua_State* L) {
1432 SkLua::Load(L); 1431 SkLua::Load(L);
1433 return 0; 1432 return 0;
1434 } 1433 }
OLDNEW
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/utils/debugger/SkObjectParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698