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

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

Issue 464063003: Add support for new drawPicture entry point to debugger (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.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 #ifndef SKDRAWCOMMAND_H_ 9 #ifndef SKDRAWCOMMAND_H_
10 #define SKDRAWCOMMAND_H_ 10 #define SKDRAWCOMMAND_H_
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 private: 337 private:
338 SkPath fPath; 338 SkPath fPath;
339 SkPaint fPaint; 339 SkPaint fPaint;
340 340
341 typedef SkDrawCommand INHERITED; 341 typedef SkDrawCommand INHERITED;
342 }; 342 };
343 343
344 class SkDrawPictureCommand : public SkDrawCommand { 344 class SkDrawPictureCommand : public SkDrawCommand {
345 public: 345 public:
346 SkDrawPictureCommand(const SkPicture* picture); 346 SkDrawPictureCommand(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint);
347 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 347 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
348 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; 348 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
349 349
350 private: 350 private:
351 SkAutoTUnref<const SkPicture> fPicture; 351 SkAutoTUnref<const SkPicture> fPicture;
352 SkMatrix fMatrix;
353 SkMatrix* fMatrixPtr;
354 SkPaint fPaint;
355 SkPaint* fPaintPtr;
352 356
353 typedef SkDrawCommand INHERITED; 357 typedef SkDrawCommand INHERITED;
354 }; 358 };
355 359
356 class SkDrawPointsCommand : public SkDrawCommand { 360 class SkDrawPointsCommand : public SkDrawCommand {
357 public: 361 public:
358 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt s[], 362 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt s[],
359 const SkPaint& paint); 363 const SkPaint& paint);
360 virtual ~SkDrawPointsCommand() { delete [] fPts; } 364 virtual ~SkDrawPointsCommand() { delete [] fPts; }
361 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 365 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 class SkPopCullCommand : public SkDrawCommand { 627 class SkPopCullCommand : public SkDrawCommand {
624 public: 628 public:
625 SkPopCullCommand(); 629 SkPopCullCommand();
626 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 630 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
627 virtual Action action() const { return kPopCull_Action; } 631 virtual Action action() const { return kPopCull_Action; }
628 private: 632 private:
629 typedef SkDrawCommand INHERITED; 633 typedef SkDrawCommand INHERITED;
630 }; 634 };
631 635
632 #endif 636 #endif
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | src/utils/debugger/SkDrawCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698