| OLD | NEW |
| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 private: | 182 private: |
| 183 SkBitmap fBitmap; | 183 SkBitmap fBitmap; |
| 184 SkScalar fLeft; | 184 SkScalar fLeft; |
| 185 SkScalar fTop; | 185 SkScalar fTop; |
| 186 SkPaint fPaint; | 186 SkPaint fPaint; |
| 187 SkPaint* fPaintPtr; | 187 SkPaint* fPaintPtr; |
| 188 | 188 |
| 189 typedef SkDrawCommand INHERITED; | 189 typedef SkDrawCommand INHERITED; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 class SkDrawBitmapMatrixCommand : public SkDrawCommand { | |
| 193 public: | |
| 194 SkDrawBitmapMatrixCommand(const SkBitmap& bitmap, const SkMatrix& matrix, | |
| 195 const SkPaint* paint); | |
| 196 virtual void execute(SkCanvas* canvas) const SK_OVERRIDE; | |
| 197 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; | |
| 198 private: | |
| 199 SkBitmap fBitmap; | |
| 200 SkMatrix fMatrix; | |
| 201 SkPaint fPaint; | |
| 202 SkPaint* fPaintPtr; | |
| 203 | |
| 204 typedef SkDrawCommand INHERITED; | |
| 205 }; | |
| 206 | |
| 207 class SkDrawBitmapNineCommand : public SkDrawCommand { | 192 class SkDrawBitmapNineCommand : public SkDrawCommand { |
| 208 public: | 193 public: |
| 209 SkDrawBitmapNineCommand(const SkBitmap& bitmap, const SkIRect& center, | 194 SkDrawBitmapNineCommand(const SkBitmap& bitmap, const SkIRect& center, |
| 210 const SkRect& dst, const SkPaint* paint); | 195 const SkRect& dst, const SkPaint* paint); |
| 211 virtual void execute(SkCanvas* canvas) const SK_OVERRIDE; | 196 virtual void execute(SkCanvas* canvas) const SK_OVERRIDE; |
| 212 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; | 197 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
| 213 private: | 198 private: |
| 214 SkBitmap fBitmap; | 199 SkBitmap fBitmap; |
| 215 SkIRect fCenter; | 200 SkIRect fCenter; |
| 216 SkRect fDst; | 201 SkRect fDst; |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 class SkPopCullCommand : public SkDrawCommand { | 631 class SkPopCullCommand : public SkDrawCommand { |
| 647 public: | 632 public: |
| 648 SkPopCullCommand(); | 633 SkPopCullCommand(); |
| 649 virtual void execute(SkCanvas* canvas) const SK_OVERRIDE; | 634 virtual void execute(SkCanvas* canvas) const SK_OVERRIDE; |
| 650 virtual Action action() const { return kPopCull_Action; } | 635 virtual Action action() const { return kPopCull_Action; } |
| 651 private: | 636 private: |
| 652 typedef SkDrawCommand INHERITED; | 637 typedef SkDrawCommand INHERITED; |
| 653 }; | 638 }; |
| 654 | 639 |
| 655 #endif | 640 #endif |
| OLD | NEW |