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

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

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)
Patch Set: no need for ifdef for globals Created 4 years, 3 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 | « tests/WritePixelsTest.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef SKDEBUGCANVAS_H_ 9 #ifndef SKDEBUGCANVAS_H_
10 #define SKDEBUGCANVAS_H_ 10 #define SKDEBUGCANVAS_H_
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 const SkPaint&) override; 241 const SkPaint&) override;
242 void onDrawPath(const SkPath&, const SkPaint&) override; 242 void onDrawPath(const SkPath&, const SkPaint&) override;
243 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 243 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
244 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 244 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
245 SrcRectConstraint) override; 245 SrcRectConstraint) override;
246 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 246 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
247 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 247 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
248 const SkPaint*, SrcRectConstraint) override; 248 const SkPaint*, SrcRectConstraint) override;
249 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 249 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
250 const SkPaint*) override; 250 const SkPaint*) override;
251 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 251 void onClipRect(const SkRect&, ClipOp, ClipEdgeStyle) override;
252 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 252 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override;
253 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 253 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override;
254 void onClipRegion(const SkRegion& region, SkRegion::Op) override; 254 void onClipRegion(const SkRegion& region, ClipOp) override;
255 255
256 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 256 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
257 257
258 #ifdef SK_EXPERIMENTAL_SHADOWING 258 #ifdef SK_EXPERIMENTAL_SHADOWING
259 void onDrawShadowedPicture(const SkPicture*, 259 void onDrawShadowedPicture(const SkPicture*,
260 const SkMatrix*, 260 const SkMatrix*,
261 const SkPaint*, 261 const SkPaint*,
262 const SkShadowParams& params) override; 262 const SkShadowParams& params) override;
263 #else 263 #else
264 void onDrawShadowedPicture(const SkPicture*, 264 void onDrawShadowedPicture(const SkPicture*,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 void addDrawCommand(SkDrawCommand* command); 303 void addDrawCommand(SkDrawCommand* command);
304 304
305 /** 305 /**
306 Applies any panning and zooming the user has specified before 306 Applies any panning and zooming the user has specified before
307 drawing anything else into the canvas. 307 drawing anything else into the canvas.
308 */ 308 */
309 void applyUserTransform(SkCanvas* canvas); 309 void applyUserTransform(SkCanvas* canvas);
310 310
311 void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = fa lse; } 311 void resetClipStackData() { fClipStackData.reset(); fCalledAddStackData = fa lse; }
312 312
313 void addClipStackData(const SkPath& devPath, const SkPath& operand, SkRegion ::Op elementOp); 313 void addClipStackData(const SkPath& devPath, const SkPath& operand, ClipOp e lementOp);
314 void addPathData(const SkPath& path, const char* pathName); 314 void addPathData(const SkPath& path, const char* pathName);
315 bool lastClipStackData(const SkPath& devPath); 315 bool lastClipStackData(const SkPath& devPath);
316 void outputConicPoints(const SkPoint* pts, SkScalar weight); 316 void outputConicPoints(const SkPoint* pts, SkScalar weight);
317 void outputPoints(const SkPoint* pts, int count); 317 void outputPoints(const SkPoint* pts, int count);
318 void outputPointsCommon(const SkPoint* pts, int count); 318 void outputPointsCommon(const SkPoint* pts, int count);
319 void outputScalar(SkScalar num); 319 void outputScalar(SkScalar num);
320 320
321 GrAuditTrail* getAuditTrail(SkCanvas*); 321 GrAuditTrail* getAuditTrail(SkCanvas*);
322 322
323 void updatePaintFilterCanvas(); 323 void updatePaintFilterCanvas();
324 void drawAndCollectBatches(int n, SkCanvas*); 324 void drawAndCollectBatches(int n, SkCanvas*);
325 void cleanupAuditTrail(SkCanvas*); 325 void cleanupAuditTrail(SkCanvas*);
326 326
327 typedef SkCanvas INHERITED; 327 typedef SkCanvas INHERITED;
328 }; 328 };
329 329
330 #endif 330 #endif
OLDNEW
« no previous file with comments | « tests/WritePixelsTest.cpp ('k') | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698