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; |
}; |