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

Side by Side Diff: debugger/SkDebugger.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « debugger/QT/SkListWidget.cpp ('k') | debugger/SkDebugger.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SKDEBUGGER_H_ 10 #ifndef SKDEBUGGER_H_
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 void setCommandVisible(int index, bool isVisible) { 43 void setCommandVisible(int index, bool isVisible) {
44 fDebugCanvas->toggleCommand(index, isVisible); 44 fDebugCanvas->toggleCommand(index, isVisible);
45 } 45 }
46 46
47 SkTArray<SkString>* getDrawCommandsAsStrings() { 47 SkTArray<SkString>* getDrawCommandsAsStrings() {
48 return fDebugCanvas->getDrawCommandsAsStrings(); 48 return fDebugCanvas->getDrawCommandsAsStrings();
49 } 49 }
50 50
51 SkTDArray<size_t>* getDrawCommandOffsets() {
52 return fDebugCanvas->getDrawCommandOffsets();
53 }
54
51 const SkTDArray<SkDrawCommand*>& getDrawCommands() const { 55 const SkTDArray<SkDrawCommand*>& getDrawCommands() const {
52 return fDebugCanvas->getDrawCommands(); 56 return fDebugCanvas->getDrawCommands();
53 } 57 }
54 58
55 void highlightCurrentCommand(bool on) { 59 void highlightCurrentCommand(bool on) {
56 fDebugCanvas->toggleFilter(on); 60 fDebugCanvas->toggleFilter(on);
57 } 61 }
58 62
59 void resize(int width, int height) { 63 void resize(int width, int height) {
60 fDebugCanvas->setBounds(width, height); 64 fDebugCanvas->setBounds(width, height);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 SkDebugCanvas* fDebugCanvas; 130 SkDebugCanvas* fDebugCanvas;
127 SkPicture* fPicture; 131 SkPicture* fPicture;
128 132
129 int fPictureWidth; 133 int fPictureWidth;
130 int fPictureHeight; 134 int fPictureHeight;
131 int fIndex; 135 int fIndex;
132 }; 136 };
133 137
134 138
135 #endif /* SKDEBUGGER_H_ */ 139 #endif /* SKDEBUGGER_H_ */
OLDNEW
« no previous file with comments | « debugger/QT/SkListWidget.cpp ('k') | debugger/SkDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698