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

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

Issue 177683003: Add DRRect to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Cleanup Created 6 years, 10 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 | Annotate | Revision Log
« 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 SkDrawRRectCommand(const SkRRect& rrect, const SkPaint& paint); 422 SkDrawRRectCommand(const SkRRect& rrect, const SkPaint& paint);
423 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 423 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
424 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; 424 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
425 private: 425 private:
426 SkRRect fRRect; 426 SkRRect fRRect;
427 SkPaint fPaint; 427 SkPaint fPaint;
428 428
429 typedef SkDrawCommand INHERITED; 429 typedef SkDrawCommand INHERITED;
430 }; 430 };
431 431
432 class SkDrawDRRectCommand : public SkDrawCommand {
433 public:
434 SkDrawDRRectCommand(const SkRRect& outer, const SkRRect& inner,
435 const SkPaint& paint);
436 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
437 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
438 private:
439 SkRRect fOuter;
440 SkRRect fInner;
441 SkPaint fPaint;
442
443 typedef SkDrawCommand INHERITED;
444 };
445
432 class SkDrawSpriteCommand : public SkDrawCommand { 446 class SkDrawSpriteCommand : public SkDrawCommand {
433 public: 447 public:
434 SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint * paint); 448 SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint * paint);
435 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 449 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
436 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; 450 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE;
437 private: 451 private:
438 SkBitmap fBitmap; 452 SkBitmap fBitmap;
439 int fLeft; 453 int fLeft;
440 int fTop; 454 int fTop;
441 SkPaint fPaint; 455 SkPaint fPaint;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 SkScalar y() const { return fDy; } 565 SkScalar y() const { return fDy; }
552 566
553 private: 567 private:
554 SkScalar fDx; 568 SkScalar fDx;
555 SkScalar fDy; 569 SkScalar fDy;
556 570
557 typedef SkDrawCommand INHERITED; 571 typedef SkDrawCommand INHERITED;
558 }; 572 };
559 573
560 #endif 574 #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