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

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

Issue 2146073003: Creating framework for drawShadowedPicture (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Fixed 'const sk_sp<SkLights>', also fixed some crumbs from merging Created 4 years, 5 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
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 232 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
233 const SkPaint*, SrcRectConstraint) override; 233 const SkPaint*, SrcRectConstraint) override;
234 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 234 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
235 const SkPaint*) override; 235 const SkPaint*) override;
236 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 236 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
237 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 237 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
238 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 238 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
239 void onClipRegion(const SkRegion& region, SkRegion::Op) override; 239 void onClipRegion(const SkRegion& region, SkRegion::Op) override;
240 240
241 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 241 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
242 void onDrawShadowedPicture(const SkPicture*, sk_sp<SkLights>) override;
242 243
243 void markActiveCommands(int index); 244 void markActiveCommands(int index);
244 245
245 private: 246 private:
246 SkTDArray<SkDrawCommand*> fCommandVector; 247 SkTDArray<SkDrawCommand*> fCommandVector;
247 SkPicture* fPicture; 248 SkPicture* fPicture;
248 bool fFilter; 249 bool fFilter;
249 bool fMegaVizMode; 250 bool fMegaVizMode;
250 SkMatrix fUserMatrix; 251 SkMatrix fUserMatrix;
251 SkMatrix fMatrix; 252 SkMatrix fMatrix;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 GrAuditTrail* getAuditTrail(SkCanvas*); 295 GrAuditTrail* getAuditTrail(SkCanvas*);
295 296
296 void updatePaintFilterCanvas(); 297 void updatePaintFilterCanvas();
297 void drawAndCollectBatches(int n, SkCanvas*); 298 void drawAndCollectBatches(int n, SkCanvas*);
298 void cleanupAuditTrail(SkCanvas*); 299 void cleanupAuditTrail(SkCanvas*);
299 300
300 typedef SkCanvas INHERITED; 301 typedef SkCanvas INHERITED;
301 }; 302 };
302 303
303 #endif 304 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698