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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.h

Issue 660883002: "Fix" debugger's setMatrix handling (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | src/utils/debugger/SkDebugCanvas.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 SKDEBUGCANVAS_H_ 10 #ifndef SKDEBUGCANVAS_H_
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 /** 142 /**
143 Toggles the visibility / execution of the draw command at index i with 143 Toggles the visibility / execution of the draw command at index i with
144 the value of toggle. 144 the value of toggle.
145 */ 145 */
146 void toggleCommand(int index, bool toggle); 146 void toggleCommand(int index, bool toggle);
147 147
148 void setWindowSize(int width, int height) { fWindowSize.set(width, height); } 148 void setWindowSize(int width, int height) { fWindowSize.set(width, height); }
149 149
150 void setUserMatrix(SkMatrix matrix) { 150 void setUserMatrix(SkMatrix matrix) {
151 fUserMatrix = matrix; 151 fUserMatrix = matrix;
152 fDrawNeedsReset = true;
152 } 153 }
153 154
154 SkString clipStackData() const { return fClipStackData; } 155 SkString clipStackData() const { return fClipStackData; }
155 156
156 //////////////////////////////////////////////////////////////////////////////// 157 ////////////////////////////////////////////////////////////////////////////////
157 // Inherited from SkCanvas 158 // Inherited from SkCanvas
158 //////////////////////////////////////////////////////////////////////////////// 159 ////////////////////////////////////////////////////////////////////////////////
159 160
160 virtual void clear(SkColor) SK_OVERRIDE; 161 virtual void clear(SkColor) SK_OVERRIDE;
161 162
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void markActiveCommands(int index); 255 void markActiveCommands(int index);
255 256
256 private: 257 private:
257 SkTDArray<SkDrawCommand*> fCommandVector; 258 SkTDArray<SkDrawCommand*> fCommandVector;
258 SkPicture* fPicture; 259 SkPicture* fPicture;
259 SkISize fWindowSize; 260 SkISize fWindowSize;
260 bool fFilter; 261 bool fFilter;
261 bool fMegaVizMode; 262 bool fMegaVizMode;
262 int fIndex; 263 int fIndex;
263 SkMatrix fUserMatrix; 264 SkMatrix fUserMatrix;
265 bool fDrawNeedsReset; // fUserMatrix has changed so the incremental draw won't work
264 SkMatrix fMatrix; 266 SkMatrix fMatrix;
265 SkIRect fClip; 267 SkIRect fClip;
266 268
267 SkString fClipStackData; 269 SkString fClipStackData;
268 bool fCalledAddStackData; 270 bool fCalledAddStackData;
269 SkPath fSaveDevPath; 271 SkPath fSaveDevPath;
270 272
271 bool fOverdrawViz; 273 bool fOverdrawViz;
272 SkDrawFilter* fOverdrawFilter; 274 SkDrawFilter* fOverdrawFilter;
273 275
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 bool lastClipStackData(const SkPath& devPath); 324 bool lastClipStackData(const SkPath& devPath);
323 void outputConicPoints(const SkPoint* pts, SkScalar weight); 325 void outputConicPoints(const SkPoint* pts, SkScalar weight);
324 void outputPoints(const SkPoint* pts, int count); 326 void outputPoints(const SkPoint* pts, int count);
325 void outputPointsCommon(const SkPoint* pts, int count); 327 void outputPointsCommon(const SkPoint* pts, int count);
326 void outputScalar(SkScalar num); 328 void outputScalar(SkScalar num);
327 329
328 typedef SkCanvas INHERITED; 330 typedef SkCanvas INHERITED;
329 }; 331 };
330 332
331 #endif 333 #endif
OLDNEW
« no previous file with comments | « no previous file | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698