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

Side by Side Diff: trunk/debugger/SkDebugger.h

Issue 12449006: NaCl Debugger: Implement overview and filters, cleanup (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 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
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_
11 #define SKDEBUGGER_H_ 11 #define SKDEBUGGER_H_
12 12
13 #include "SkDebugCanvas.h" 13 #include "SkDebugCanvas.h"
14 #include "SkPicture.h" 14 #include "SkPicture.h"
robertphillips 2013/03/07 22:19:11 probably only need "class SkString;" here
borenet 2013/03/08 13:00:26 Done.
15 #include "SkString.h"
15 #include "SkTArray.h" 16 #include "SkTArray.h"
16 17
17 class SkDebugger { 18 class SkDebugger {
18 public: 19 public:
19 SkDebugger(); 20 SkDebugger();
20 21
21 ~SkDebugger(); 22 ~SkDebugger();
22 23
23 void setIndex(int index) { 24 void setIndex(int index) {
24 fIndex = index; 25 fIndex = index;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int index() { 99 int index() {
99 return fIndex; 100 return fIndex;
100 } 101 }
101 102
102 void setOverdrawViz(bool overDrawViz) { 103 void setOverdrawViz(bool overDrawViz) {
103 if (NULL != fDebugCanvas) { 104 if (NULL != fDebugCanvas) {
104 fDebugCanvas->setOverdrawViz(overDrawViz); 105 fDebugCanvas->setOverdrawViz(overDrawViz);
105 } 106 }
106 } 107 }
107 108
109 void getOverviewText(const SkTDArray<double>* typeTimes, double totTime, SkS tring& overview);
borenet 2013/03/07 21:38:08 Better to modify a passed-in string in place, or t
djsollen 2013/03/07 21:50:22 modify in place.
djsollen 2013/03/07 21:50:22 modify in place if you can initially alloc more th
borenet 2013/03/08 13:00:26 In a future CL I'll estimate the right size to all
108 110
109 private: 111 private:
110 SkDebugCanvas* fDebugCanvas; 112 SkDebugCanvas* fDebugCanvas;
111 SkPicture* fPicture; 113 SkPicture* fPicture;
112 114
113 int fPictureWidth; 115 int fPictureWidth;
114 int fPictureHeight; 116 int fPictureHeight;
115 int fIndex; 117 int fIndex;
116 }; 118 };
117 119
118 120
119 #endif /* SKDEBUGGER_H_ */ 121 #endif /* SKDEBUGGER_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698