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

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

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: One more baseurl attempt Created 6 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 unified diff | Download patch
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/SkNWayCanvas.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 "SkLuaCanvas.h" 8 #include "SkLuaCanvas.h"
9 #include "SkLua.h" 9 #include "SkLua.h"
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 /////////////////////////////////////////////////////////////////////////////// 74 ///////////////////////////////////////////////////////////////////////////////
75 75
76 SkLuaCanvas::SkLuaCanvas(int width, int height, lua_State* L, const char func[]) 76 SkLuaCanvas::SkLuaCanvas(int width, int height, lua_State* L, const char func[])
77 : INHERITED(width, height) 77 : INHERITED(width, height)
78 , fL(L) 78 , fL(L)
79 , fFunc(func) { 79 , fFunc(func) {
80 } 80 }
81 81
82 SkLuaCanvas::~SkLuaCanvas() {} 82 SkLuaCanvas::~SkLuaCanvas() {}
83 83
84 void SkLuaCanvas::willSave(SaveFlags flags) { 84 void SkLuaCanvas::willSave() {
85 AUTO_LUA("save"); 85 AUTO_LUA("save");
86 this->INHERITED::willSave(flags); 86 this->INHERITED::willSave();
87 } 87 }
88 88
89 SkCanvas::SaveLayerStrategy SkLuaCanvas::willSaveLayer(const SkRect* bounds, con st SkPaint* paint, 89 SkCanvas::SaveLayerStrategy SkLuaCanvas::willSaveLayer(const SkRect* bounds, con st SkPaint* paint,
90 SaveFlags flags) { 90 SaveFlags flags) {
91 AUTO_LUA("saveLayer"); 91 AUTO_LUA("saveLayer");
92 if (bounds) { 92 if (bounds) {
93 lua.pushRect(*bounds, "bounds"); 93 lua.pushRect(*bounds, "bounds");
94 } 94 }
95 if (paint) { 95 if (paint) {
96 lua.pushPaint(*paint, "paint"); 96 lua.pushPaint(*paint, "paint");
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 const SkColor colors[], SkXfermode* xmode, 279 const SkColor colors[], SkXfermode* xmode,
280 const uint16_t indices[], int indexCount, 280 const uint16_t indices[], int indexCount,
281 const SkPaint& paint) { 281 const SkPaint& paint) {
282 AUTO_LUA("drawVertices"); 282 AUTO_LUA("drawVertices");
283 lua.pushPaint(paint, "paint"); 283 lua.pushPaint(paint, "paint");
284 } 284 }
285 285
286 void SkLuaCanvas::drawData(const void* data, size_t length) { 286 void SkLuaCanvas::drawData(const void* data, size_t length) {
287 AUTO_LUA("drawData"); 287 AUTO_LUA("drawData");
288 } 288 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/SkNWayCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698