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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.cpp

Issue 1614923002: Add Lua SkXfermode skp scraping support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 "SkClipStack.h" 8 #include "SkClipStack.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkDebugCanvas.h" 10 #include "SkDebugCanvas.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ++idx; 47 ++idx;
48 SkASSERT(idx < (int)SK_ARRAY_COUNT(gTable)); 48 SkASSERT(idx < (int)SK_ARRAY_COUNT(gTable));
49 49
50 return gTable[idx]; 50 return gTable[idx];
51 } 51 }
52 52
53 Factory getFactory() const override { return nullptr; } 53 Factory getFactory() const override { return nullptr; }
54 #ifndef SK_IGNORE_TO_STRING 54 #ifndef SK_IGNORE_TO_STRING
55 void toString(SkString* str) const override { str->set("OverdrawXfermode"); } 55 void toString(SkString* str) const override { str->set("OverdrawXfermode"); }
56 #endif 56 #endif
57
58 protected:
59 void luaGetName(SkString* name) const override { name->set("Overdraw"); }
57 }; 60 };
58 61
59 class DebugPaintFilterCanvas : public SkPaintFilterCanvas { 62 class DebugPaintFilterCanvas : public SkPaintFilterCanvas {
60 public: 63 public:
61 DebugPaintFilterCanvas(int width, 64 DebugPaintFilterCanvas(int width,
62 int height, 65 int height,
63 bool overdrawViz, 66 bool overdrawViz,
64 bool overrideFilterQuality, 67 bool overrideFilterQuality,
65 SkFilterQuality quality) 68 SkFilterQuality quality)
66 : INHERITED(width, height) 69 : INHERITED(width, height)
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 } 664 }
662 665
663 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 666 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
664 if (fCalledAddStackData) { 667 if (fCalledAddStackData) {
665 fClipStackData.appendf("<br>"); 668 fClipStackData.appendf("<br>");
666 addPathData(devPath, "pathOut"); 669 addPathData(devPath, "pathOut");
667 return true; 670 return true;
668 } 671 }
669 return false; 672 return false;
670 } 673 }
OLDNEW
« include/core/SkXfermode.h ('K') | « src/utils/SkLua.cpp ('k') | tools/lua/xfer-counter.lua » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698