chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2012 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
| 9 | #ifndef SKDEBUGGERUI_H |
| 10 | #define SKDEBUGGERUI_H |
| 11 | |
| 12 | |
| 13 | #include "SkCanvas.h" |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 14 | #include "SkCanvasWidget.h" |
chudy@google.com | 607357f | 2012-08-07 16:12:23 +0000 | [diff] [blame] | 15 | #include "SkDebugger.h" |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 16 | #include "SkGLWidget.h" |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 17 | #include "SkListWidget.h" |
| 18 | #include "SkInspectorWidget.h" |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 19 | #include "SkRasterWidget.h" |
kkinnunen | 63a4702 | 2014-12-30 23:03:56 -0800 | [diff] [blame] | 20 | #include "SkDrawCommandGeometryWidget.h" |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 21 | #include "SkSettingsWidget.h" |
| 22 | #include <QtCore/QVariant> |
| 23 | #include <QtGui/QAction> |
| 24 | #include <QtGui/QApplication> |
| 25 | #include <QtGui/QButtonGroup> |
| 26 | #include <QtGui/QHBoxLayout> |
| 27 | #include <QtGui/QHeaderView> |
| 28 | #include <QtGui/QListView> |
| 29 | #include <QtGui/QListWidget> |
| 30 | #include <QtGui/QMainWindow> |
commit-bot@chromium.org | bcd431e | 2013-11-21 13:41:37 +0000 | [diff] [blame] | 31 | #include <QtGui/QSplitter> |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 32 | #include <QtGui/QStatusBar> |
| 33 | #include <QtGui/QToolBar> |
| 34 | #include <QtGui/QVBoxLayout> |
| 35 | #include <QtGui/QWidget> |
| 36 | #include <QtGui/QMenu> |
| 37 | #include <QtGui/QMenuBar> |
| 38 | #include <vector> |
| 39 | |
robertphillips@google.com | 8a1cdae | 2012-11-19 20:44:29 +0000 | [diff] [blame] | 40 | class SkTimedPicture; |
| 41 | namespace sk_tools { |
| 42 | class PictureRenderer; |
| 43 | } |
| 44 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 45 | /** \class SkDebuggerGUI |
| 46 | |
| 47 | Container for the UI and it's functions. |
| 48 | */ |
| 49 | class SkDebuggerGUI : public QMainWindow { |
| 50 | Q_OBJECT |
| 51 | |
| 52 | public: |
| 53 | /** |
| 54 | Constructs the view of the application. |
| 55 | @param parent The parent container of this widget. |
| 56 | */ |
| 57 | SkDebuggerGUI(QWidget *parent = 0); |
| 58 | |
robertphillips@google.com | ff6e6ba | 2013-01-28 17:43:26 +0000 | [diff] [blame] | 59 | /** |
| 60 | Updates the directory widget with the latest directory path stored in |
| 61 | the global class variable fPath. |
| 62 | */ |
| 63 | void setupDirectoryWidget(const QString& path); |
| 64 | |
| 65 | /** |
| 66 | Loads the specified file. |
| 67 | */ |
| 68 | void openFile(const QString& filename); |
| 69 | |
chudy@google.com | 7dcae67 | 2012-07-09 20:26:53 +0000 | [diff] [blame] | 70 | signals: |
| 71 | void commandChanged(int command); |
| 72 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 73 | private slots: |
| 74 | /** |
| 75 | Toggles breakpoint view in the list widget. |
| 76 | */ |
| 77 | void actionBreakpoints(); |
| 78 | |
| 79 | /** |
commit-bot@chromium.org | 57f74e0 | 2014-03-25 23:31:33 +0000 | [diff] [blame] | 80 | Toggles between count and offset style of command indexing in GUI |
| 81 | */ |
| 82 | void actionToggleIndexStyle(); |
| 83 | |
| 84 | /** |
robertphillips@google.com | d26c706 | 2012-11-12 20:42:12 +0000 | [diff] [blame] | 85 | Profile the commands |
| 86 | */ |
| 87 | void actionProfile(); |
| 88 | |
| 89 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 90 | Cancels the command filter in the list widget. |
| 91 | */ |
| 92 | void actionCancel(); |
| 93 | |
| 94 | /** |
chudy@google.com | 7e4cfbf | 2012-07-17 15:40:51 +0000 | [diff] [blame] | 95 | Clears the breakpoint state off of all commands marked as breakpoints. |
| 96 | */ |
| 97 | void actionClearBreakpoints(); |
| 98 | |
| 99 | /** |
| 100 | Clears the deleted state off of all commands marked as deleted. |
| 101 | */ |
| 102 | void actionClearDeletes(); |
| 103 | |
| 104 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 105 | Closes the application. |
| 106 | */ |
| 107 | void actionClose(); |
| 108 | |
| 109 | /** |
| 110 | Deletes the command in question. |
| 111 | */ |
| 112 | void actionDelete(); |
| 113 | |
robertphillips@google.com | e8fe4bc | 2013-02-13 13:26:13 +0000 | [diff] [blame] | 114 | #if SK_SUPPORT_GPU |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 115 | /** |
commit-bot@chromium.org | fde1e7c | 2013-08-02 13:59:50 +0000 | [diff] [blame] | 116 | Updates the visibility of the GL canvas widget and sample count of the GL surface. |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 117 | */ |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 118 | void actionGLSettingsChanged(); |
robertphillips@google.com | e8fe4bc | 2013-02-13 13:26:13 +0000 | [diff] [blame] | 119 | #endif |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 120 | |
| 121 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 122 | Toggles the visibility of the inspector widget. |
| 123 | */ |
| 124 | void actionInspector(); |
| 125 | |
| 126 | /** |
| 127 | Plays from the current step to the next breakpoint if it exists, otherwise |
| 128 | executes all remaining draw commands. |
| 129 | */ |
| 130 | void actionPlay(); |
| 131 | |
| 132 | /** |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 133 | Sets the visibility of the raster canvas widget according to the settings widget. |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 134 | */ |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 135 | void actionRasterSettingsChanged(); |
chudy@google.com | ea5488b | 2012-07-26 19:38:22 +0000 | [diff] [blame] | 136 | |
| 137 | /** |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 138 | Sets the visualization settings according to the settings widget. |
robertphillips@google.com | f4741c1 | 2013-02-06 20:13:54 +0000 | [diff] [blame] | 139 | */ |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 140 | void actionVisualizationsChanged(); |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 141 | |
| 142 | /** |
robertphillips@google.com | 32bbcf8 | 2013-10-17 17:56:10 +0000 | [diff] [blame] | 143 | Applies the new texture filter override |
| 144 | */ |
| 145 | void actionTextureFilter(); |
| 146 | |
| 147 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 148 | Rewinds from the current step back to the start of the commands. |
| 149 | */ |
| 150 | void actionRewind(); |
| 151 | |
| 152 | /** |
chudy@google.com | 0ab0339 | 2012-07-28 20:16:11 +0000 | [diff] [blame] | 153 | Saves the current SKP with all modifications. |
| 154 | */ |
| 155 | void actionSave(); |
| 156 | |
| 157 | /** |
| 158 | Saves the current SKP under a different name and/or location. |
| 159 | */ |
| 160 | void actionSaveAs(); |
| 161 | |
| 162 | /** |
chudy@google.com | 7dcae67 | 2012-07-09 20:26:53 +0000 | [diff] [blame] | 163 | Sends the scale factor information to the settings widget. |
| 164 | */ |
| 165 | void actionScale(float scaleFactor); |
| 166 | |
| 167 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 168 | Toggles the settings widget visibility. |
| 169 | */ |
| 170 | void actionSettings(); |
| 171 | |
| 172 | /** |
| 173 | Steps forward to the next draw command. |
| 174 | */ |
| 175 | void actionStepBack(); |
| 176 | |
| 177 | /** |
| 178 | Steps backwards to the next draw command. |
| 179 | */ |
| 180 | void actionStepForward(); |
| 181 | |
| 182 | /** |
chudy@google.com | a9e937c | 2012-08-03 17:32:05 +0000 | [diff] [blame] | 183 | Called when the canvas is done being drawn to by SkCanvasWidget. |
| 184 | */ |
| 185 | void drawComplete(); |
| 186 | |
| 187 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 188 | Loads an skpicture selected from the directory. |
| 189 | */ |
| 190 | void loadFile(QListWidgetItem *item); |
| 191 | |
| 192 | /** |
| 193 | Toggles a dialog with a file browser for navigating to a skpicture. Loads |
robertphillips@google.com | ff6e6ba | 2013-01-28 17:43:26 +0000 | [diff] [blame] | 194 | the selected file. |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 195 | */ |
| 196 | void openFile(); |
| 197 | |
| 198 | /** |
chudy@google.com | 7dcae67 | 2012-07-09 20:26:53 +0000 | [diff] [blame] | 199 | Toggles whether drawing to a new command requires a double click |
| 200 | or simple focus. |
| 201 | */ |
chudy@google.com | e504de0 | 2012-07-16 18:35:23 +0000 | [diff] [blame] | 202 | void pauseDrawing(bool isPaused = true); |
chudy@google.com | 7dcae67 | 2012-07-09 20:26:53 +0000 | [diff] [blame] | 203 | |
| 204 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 205 | Executes draw commands up to the selected command |
| 206 | */ |
| 207 | void registerListClick(QListWidgetItem *item); |
| 208 | |
| 209 | /** |
chudy@google.com | 9ca9bfe | 2012-07-12 21:58:14 +0000 | [diff] [blame] | 210 | Sets the command to active in the list widget. |
| 211 | */ |
| 212 | void selectCommand(int command); |
| 213 | |
| 214 | /** |
chudy@google.com | 7e4cfbf | 2012-07-17 15:40:51 +0000 | [diff] [blame] | 215 | Toggles the exclusive listing of commands set as deleted. |
| 216 | */ |
| 217 | void showDeletes(); |
| 218 | |
| 219 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 220 | Toggles a breakpoint on the current step in the list widget. |
| 221 | */ |
| 222 | void toggleBreakpoint(); |
| 223 | |
| 224 | /** |
| 225 | Toggles the visibility of the directory widget. |
| 226 | */ |
| 227 | void toggleDirectory(); |
| 228 | |
| 229 | /** |
| 230 | Filters the list widgets command visibility based on the currently |
| 231 | active selection. |
| 232 | */ |
| 233 | void toggleFilter(QString string); |
| 234 | |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 235 | void updateCommand(int newCommand); |
| 236 | void updateHit(int newHit); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 237 | private: |
commit-bot@chromium.org | bcd431e | 2013-11-21 13:41:37 +0000 | [diff] [blame] | 238 | QSplitter fCentralSplitter; |
chudy@google.com | 2d537a1 | 2012-07-31 12:49:52 +0000 | [diff] [blame] | 239 | QStatusBar fStatusBar; |
| 240 | QToolBar fToolBar; |
| 241 | |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 242 | QAction fActionOpen; |
| 243 | QAction fActionBreakpoint; |
commit-bot@chromium.org | 57f74e0 | 2014-03-25 23:31:33 +0000 | [diff] [blame] | 244 | QAction fActionToggleIndexStyle; |
robertphillips@google.com | d26c706 | 2012-11-12 20:42:12 +0000 | [diff] [blame] | 245 | QAction fActionProfile; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 246 | QAction fActionCancel; |
chudy@google.com | 7e4cfbf | 2012-07-17 15:40:51 +0000 | [diff] [blame] | 247 | QAction fActionClearBreakpoints; |
chudy@google.com | e504de0 | 2012-07-16 18:35:23 +0000 | [diff] [blame] | 248 | QAction fActionClearDeletes; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 249 | QAction fActionClose; |
chudy@google.com | e504de0 | 2012-07-16 18:35:23 +0000 | [diff] [blame] | 250 | QAction fActionCreateBreakpoint; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 251 | QAction fActionDelete; |
| 252 | QAction fActionDirectory; |
| 253 | QAction fActionGoToLine; |
| 254 | QAction fActionInspector; |
bungeman@google.com | 2ff6d1d | 2013-07-01 14:24:12 +0000 | [diff] [blame] | 255 | QAction fActionSettings; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 256 | QAction fActionPlay; |
chudy@google.com | e504de0 | 2012-07-16 18:35:23 +0000 | [diff] [blame] | 257 | QAction fActionPause; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 258 | QAction fActionRewind; |
chudy@google.com | 0ab0339 | 2012-07-28 20:16:11 +0000 | [diff] [blame] | 259 | QAction fActionSave; |
| 260 | QAction fActionSaveAs; |
chudy@google.com | 7e4cfbf | 2012-07-17 15:40:51 +0000 | [diff] [blame] | 261 | QAction fActionShowDeletes; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 262 | QAction fActionStepBack; |
| 263 | QAction fActionStepForward; |
chudy@google.com | a122631 | 2012-07-26 20:26:44 +0000 | [diff] [blame] | 264 | QAction fActionZoomIn; |
| 265 | QAction fActionZoomOut; |
| 266 | QSignalMapper fMapper; |
chudy@google.com | 2d537a1 | 2012-07-31 12:49:52 +0000 | [diff] [blame] | 267 | |
chudy@google.com | 0ab0339 | 2012-07-28 20:16:11 +0000 | [diff] [blame] | 268 | QWidget fSpacer; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 269 | QComboBox fFilter; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 270 | |
commit-bot@chromium.org | bcd431e | 2013-11-21 13:41:37 +0000 | [diff] [blame] | 271 | QSplitter fLeftColumnSplitter; |
| 272 | QWidget fMainAndRightColumnWidget; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 273 | QVBoxLayout fMainAndRightColumnLayout; |
robertphillips@google.com | 6dec8fc | 2012-11-21 17:11:02 +0000 | [diff] [blame] | 274 | QHBoxLayout fCanvasSettingsAndImageLayout; |
| 275 | QVBoxLayout fSettingsAndImageLayout; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 276 | |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 277 | QListWidget fListWidget; |
| 278 | QListWidget fDirectoryWidget; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 279 | |
chudy@google.com | 607357f | 2012-08-07 16:12:23 +0000 | [diff] [blame] | 280 | SkDebugger fDebugger; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 281 | SkCanvasWidget fCanvasWidget; |
kkinnunen | 63a4702 | 2014-12-30 23:03:56 -0800 | [diff] [blame] | 282 | |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 283 | SkInspectorWidget fInspectorWidget; |
| 284 | SkSettingsWidget fSettingsWidget; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 285 | |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 286 | QFrame fViewStateFrame; |
| 287 | QVBoxLayout fViewStateFrameLayout; |
| 288 | QGroupBox fViewStateGroup; |
| 289 | QFormLayout fViewStateLayout; |
| 290 | QLineEdit fCurrentCommandBox; |
| 291 | QLineEdit fCommandHitBox; |
| 292 | QLineEdit fZoomBox; |
kkinnunen | 63a4702 | 2014-12-30 23:03:56 -0800 | [diff] [blame] | 293 | SkDrawCommandGeometryWidget fDrawCommandGeometryWidget; |
kkinnunen | 41c79cc | 2014-12-30 22:49:58 -0800 | [diff] [blame] | 294 | |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 295 | QString fPath; |
robertphillips@google.com | d26c706 | 2012-11-12 20:42:12 +0000 | [diff] [blame] | 296 | SkString fFileName; |
robertphillips@google.com | 5f97114 | 2012-12-07 20:48:56 +0000 | [diff] [blame] | 297 | SkTDArray<bool> fSkipCommands; // has a specific command been deleted? |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 298 | bool fDirectoryWidgetActive; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 299 | |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 300 | QMenuBar fMenuBar; |
| 301 | QMenu fMenuFile; |
chudy@google.com | e504de0 | 2012-07-16 18:35:23 +0000 | [diff] [blame] | 302 | QMenu fMenuEdit; |
chudy@google.com | c432f00 | 2012-07-10 13:19:25 +0000 | [diff] [blame] | 303 | QMenu fMenuNavigate; |
| 304 | QMenu fMenuView; |
chudy@google.com | e504de0 | 2012-07-16 18:35:23 +0000 | [diff] [blame] | 305 | QMenu fMenuWindows; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 306 | |
chudy@google.com | d3058f5 | 2012-07-19 13:41:27 +0000 | [diff] [blame] | 307 | bool fLoading; |
chudy@google.com | 2d537a1 | 2012-07-31 12:49:52 +0000 | [diff] [blame] | 308 | int fPausedRow; |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 309 | |
| 310 | /** |
| 311 | Creates the entire UI. |
| 312 | */ |
| 313 | void setupUi(QMainWindow *SkDebuggerGUI); |
| 314 | |
| 315 | /** |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 316 | Pipes a QString in with the location of the filename, proceeds to updating |
| 317 | the listwidget, combowidget and inspectorwidget. |
| 318 | */ |
robertphillips@google.com | d26c706 | 2012-11-12 20:42:12 +0000 | [diff] [blame] | 319 | void loadPicture(const SkString& fileName); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 320 | |
| 321 | /** |
chudy@google.com | 0ab0339 | 2012-07-28 20:16:11 +0000 | [diff] [blame] | 322 | Creates a picture of the current canvas. |
| 323 | */ |
robertphillips@google.com | d26c706 | 2012-11-12 20:42:12 +0000 | [diff] [blame] | 324 | void saveToFile(const SkString& filename); |
chudy@google.com | 0ab0339 | 2012-07-28 20:16:11 +0000 | [diff] [blame] | 325 | |
| 326 | /** |
kkinnunen | 5037e9d | 2014-12-30 07:22:58 -0800 | [diff] [blame] | 327 | Populates the list widget with the debugger draw command info. |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 328 | */ |
kkinnunen | 5037e9d | 2014-12-30 07:22:58 -0800 | [diff] [blame] | 329 | void setupListWidget(); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 330 | |
| 331 | /** |
kkinnunen | 5037e9d | 2014-12-30 07:22:58 -0800 | [diff] [blame] | 332 | Populates the combo box widget with with the debugger draw command info. |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 333 | */ |
kkinnunen | 5037e9d | 2014-12-30 07:22:58 -0800 | [diff] [blame] | 334 | void setupComboBox(); |
robertphillips@google.com | 8a1cdae | 2012-11-19 20:44:29 +0000 | [diff] [blame] | 335 | |
| 336 | /** |
| 337 | Fills in the overview pane with text |
| 338 | */ |
robertphillips@google.com | 20beb48 | 2013-03-07 19:32:45 +0000 | [diff] [blame] | 339 | void setupOverviewText(const SkTDArray<double>* typeTimes, double totTime, int numRuns); |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 340 | |
| 341 | /** |
commit-bot@chromium.org | 2a67e12 | 2014-05-19 13:53:10 +0000 | [diff] [blame] | 342 | Fills in the clip stack pane with text |
| 343 | */ |
| 344 | void setupClipStackText(); |
| 345 | |
| 346 | /** |
robertphillips@google.com | 8a1cdae | 2012-11-19 20:44:29 +0000 | [diff] [blame] | 347 | Render the supplied picture several times tracking the time consumed |
| 348 | by each command. |
| 349 | */ |
robertphillips | ce4dd3d | 2014-07-07 13:46:35 -0700 | [diff] [blame] | 350 | void run(const SkPicture* pict, |
skia.committer@gmail.com | 3458716 | 2012-11-20 02:01:23 +0000 | [diff] [blame] | 351 | sk_tools::PictureRenderer* renderer, |
robertphillips@google.com | 8a1cdae | 2012-11-19 20:44:29 +0000 | [diff] [blame] | 352 | int repeats); |
kkinnunen | f3a9e99 | 2015-01-05 01:14:11 -0800 | [diff] [blame^] | 353 | |
| 354 | bool isPaused() const { |
| 355 | return fActionPause.isChecked(); |
| 356 | } |
chudy@google.com | 902ebe5 | 2012-06-29 14:21:22 +0000 | [diff] [blame] | 357 | }; |
| 358 | |
| 359 | #endif // SKDEBUGGERUI_H |