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

Side by Side Diff: tools/debugger/SkDebugCanvas.h

Issue 1755563003: add /img/n/m endpoint to skiaserve (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: tweak Created 4 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
« no previous file with comments | « src/gpu/GrAuditTrail.cpp ('k') | tools/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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 /** 61 /**
62 Executes all draw calls to the canvas. 62 Executes all draw calls to the canvas.
63 @param canvas The canvas being drawn to 63 @param canvas The canvas being drawn to
64 */ 64 */
65 void draw(SkCanvas* canvas); 65 void draw(SkCanvas* canvas);
66 66
67 /** 67 /**
68 Executes the draw calls up to the specified index. 68 Executes the draw calls up to the specified index.
69 @param canvas The canvas being drawn to 69 @param canvas The canvas being drawn to
70 @param index The index of the final command being executed 70 @param index The index of the final command being executed
71 @param m an optional Mth gpu batch to highlight, or -1
71 */ 72 */
72 void drawTo(SkCanvas* canvas, int index); 73 void drawTo(SkCanvas* canvas, int index, int m = -1);
73 74
74 /** 75 /**
75 Returns the most recently calculated transformation matrix 76 Returns the most recently calculated transformation matrix
76 */ 77 */
77 const SkMatrix& getCurrentMatrix() { 78 const SkMatrix& getCurrentMatrix() {
78 return fMatrix; 79 return fMatrix;
79 } 80 }
80 81
81 /** 82 /**
82 Returns the most recently calculated clip 83 Returns the most recently calculated clip
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 void outputPoints(const SkPoint* pts, int count); 283 void outputPoints(const SkPoint* pts, int count);
283 void outputPointsCommon(const SkPoint* pts, int count); 284 void outputPointsCommon(const SkPoint* pts, int count);
284 void outputScalar(SkScalar num); 285 void outputScalar(SkScalar num);
285 286
286 void updatePaintFilterCanvas(); 287 void updatePaintFilterCanvas();
287 288
288 typedef SkCanvas INHERITED; 289 typedef SkCanvas INHERITED;
289 }; 290 };
290 291
291 #endif 292 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAuditTrail.cpp ('k') | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698