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

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

Issue 1534443003: remove drawSprite from canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: really tired of unused variable warnings Created 5 years 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 /* 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 23 matching lines...) Expand all
34 kDrawImageRect_OpType, 34 kDrawImageRect_OpType,
35 kDrawOval_OpType, 35 kDrawOval_OpType,
36 kDrawPaint_OpType, 36 kDrawPaint_OpType,
37 kDrawPatch_OpType, 37 kDrawPatch_OpType,
38 kDrawPath_OpType, 38 kDrawPath_OpType,
39 kDrawPoints_OpType, 39 kDrawPoints_OpType,
40 kDrawPosText_OpType, 40 kDrawPosText_OpType,
41 kDrawPosTextH_OpType, 41 kDrawPosTextH_OpType,
42 kDrawRect_OpType, 42 kDrawRect_OpType,
43 kDrawRRect_OpType, 43 kDrawRRect_OpType,
44 kDrawSprite_OpType,
45 kDrawText_OpType, 44 kDrawText_OpType,
46 kDrawTextBlob_OpType, 45 kDrawTextBlob_OpType,
47 kDrawTextOnPath_OpType, 46 kDrawTextOnPath_OpType,
48 kDrawVertices_OpType, 47 kDrawVertices_OpType,
49 kEndDrawPicture_OpType, 48 kEndDrawPicture_OpType,
50 kRestore_OpType, 49 kRestore_OpType,
51 kSave_OpType, 50 kSave_OpType,
52 kSaveLayer_OpType, 51 kSaveLayer_OpType,
53 kSetMatrix_OpType, 52 kSetMatrix_OpType,
54 53
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void execute(SkCanvas* canvas) const override; 510 void execute(SkCanvas* canvas) const override;
512 bool render(SkCanvas* canvas) const override; 511 bool render(SkCanvas* canvas) const override;
513 private: 512 private:
514 SkRRect fOuter; 513 SkRRect fOuter;
515 SkRRect fInner; 514 SkRRect fInner;
516 SkPaint fPaint; 515 SkPaint fPaint;
517 516
518 typedef SkDrawCommand INHERITED; 517 typedef SkDrawCommand INHERITED;
519 }; 518 };
520 519
521 class SkDrawSpriteCommand : public SkDrawCommand {
522 public:
523 SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint * paint);
524 void execute(SkCanvas* canvas) const override;
525 bool render(SkCanvas* canvas) const override;
526 private:
527 SkBitmap fBitmap;
528 int fLeft;
529 int fTop;
530 SkPaint fPaint;
531 SkPaint* fPaintPtr;
532
533 typedef SkDrawCommand INHERITED;
534 };
535
536 class SkDrawVerticesCommand : public SkDrawCommand { 520 class SkDrawVerticesCommand : public SkDrawCommand {
537 public: 521 public:
538 SkDrawVerticesCommand(SkCanvas::VertexMode vmode, int vertexCount, 522 SkDrawVerticesCommand(SkCanvas::VertexMode vmode, int vertexCount,
539 const SkPoint vertices[], const SkPoint texs[], 523 const SkPoint vertices[], const SkPoint texs[],
540 const SkColor colors[], SkXfermode* xfermode, 524 const SkColor colors[], SkXfermode* xfermode,
541 const uint16_t indices[], int indexCount, 525 const uint16_t indices[], int indexCount,
542 const SkPaint& paint); 526 const SkPaint& paint);
543 virtual ~SkDrawVerticesCommand(); 527 virtual ~SkDrawVerticesCommand();
544 void execute(SkCanvas* canvas) const override; 528 void execute(SkCanvas* canvas) const override;
545 private: 529 private:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 void setUserMatrix(const SkMatrix&) override; 578 void setUserMatrix(const SkMatrix&) override;
595 void execute(SkCanvas* canvas) const override; 579 void execute(SkCanvas* canvas) const override;
596 private: 580 private:
597 SkMatrix fUserMatrix; 581 SkMatrix fUserMatrix;
598 SkMatrix fMatrix; 582 SkMatrix fMatrix;
599 583
600 typedef SkDrawCommand INHERITED; 584 typedef SkDrawCommand INHERITED;
601 }; 585 };
602 586
603 #endif 587 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698