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

Unified Diff: src/utils/debugger/SkDebugCanvas.h

Issue 211383003: Debugger improvements (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fix Mac 10.8 compilation issue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/SkDebugger.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDebugCanvas.h
===================================================================
--- src/utils/debugger/SkDebugCanvas.h (revision 13942)
+++ src/utils/debugger/SkDebugCanvas.h (working copy)
@@ -26,12 +26,19 @@
void toggleFilter(bool toggle) { fFilter = toggle; }
void setMegaVizMode(bool megaVizMode) { fMegaVizMode = megaVizMode; }
+ bool getMegaVizMode() const { return fMegaVizMode; }
/**
* Enable or disable overdraw visualization
*/
void setOverdrawViz(bool overdrawViz) { fOverdrawViz = overdrawViz; }
+ bool getOverdrawViz() const { return fOverdrawViz; }
+ void setOutstandingSaveCount(int saveCount) { fOutstandingSaveCount = saveCount; }
+ int getOutstandingSaveCount() const { return fOutstandingSaveCount; }
+
+ void setPicture(SkPicture* picture) { fPicture = picture; }
+
/**
* Enable or disable texure filtering override
*/
@@ -118,6 +125,11 @@
SkTArray<SkString>* getDrawCommandsAsStrings() const;
/**
+ * Returns an array containing an offset (in the SkPicture) for each command
+ */
+ SkTDArray<size_t>* getDrawCommandOffsets() const;
+
+ /**
Returns length of draw command vector.
*/
int getSize() const {
@@ -250,6 +262,7 @@
private:
SkTDArray<SkDrawCommand*> fCommandVector;
+ SkPicture* fPicture;
int fWidth;
int fHeight;
bool fFilter;
@@ -297,6 +310,13 @@
*/
void applyUserTransform(SkCanvas* canvas);
+ size_t getOpID() const {
+ if (NULL != fPicture) {
+ return fPicture->EXPERIMENTAL_curOpID();
+ }
+ return 0;
+ }
+
typedef SkCanvas INHERITED;
};
« no previous file with comments | « debugger/SkDebugger.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698