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

Unified Diff: debugger/SkDebugger.h

Issue 821663003: Change DebugCanvas API to not encourage memory leaks (Closed) Base URL: https://skia.googlesource.com/skia.git@debugger-raster-black-bg
Patch Set: ..nacl Created 6 years 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/QT/SkDebuggerGUI.cpp ('k') | platform_tools/nacl/src/nacl_debugger.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/SkDebugger.h
diff --git a/debugger/SkDebugger.h b/debugger/SkDebugger.h
index 5359b10fe96bbdc57ffb8d1fc6c5d806bff8033e..683b98d6d949eae6f859676b27aeaf560c32166c 100644
--- a/debugger/SkDebugger.h
+++ b/debugger/SkDebugger.h
@@ -44,12 +44,8 @@ public:
fDebugCanvas->toggleCommand(index, isVisible);
}
- SkTArray<SkString>* getDrawCommandsAsStrings() {
- return fDebugCanvas->getDrawCommandsAsStrings();
- }
-
- SkTDArray<size_t>* getDrawCommandOffsets() {
- return fDebugCanvas->getDrawCommandOffsets();
+ SkDrawCommand* getDrawCommandAt(int index) {
+ return fDebugCanvas->getDrawCommandAt(index);
}
const SkTDArray<SkDrawCommand*>& getDrawCommands() const {
@@ -66,7 +62,7 @@ public:
SkPicture* copyPicture();
- int getSize() {
+ int getSize() const {
return fDebugCanvas->getSize();
}
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | platform_tools/nacl/src/nacl_debugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698