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

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

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: One more baseurl attempt Created 6 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
« 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 SkRotateCommand(SkScalar degrees); 515 SkRotateCommand(SkScalar degrees);
516 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 516 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
517 private: 517 private:
518 SkScalar fDegrees; 518 SkScalar fDegrees;
519 519
520 typedef SkDrawCommand INHERITED; 520 typedef SkDrawCommand INHERITED;
521 }; 521 };
522 522
523 class SkSaveCommand : public SkDrawCommand { 523 class SkSaveCommand : public SkDrawCommand {
524 public: 524 public:
525 SkSaveCommand(SkCanvas::SaveFlags flags); 525 SkSaveCommand();
526 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 526 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
527 virtual void trackSaveState(int* state) SK_OVERRIDE; 527 virtual void trackSaveState(int* state) SK_OVERRIDE;
528 virtual Action action() const SK_OVERRIDE { return kPushLayer_Action; } 528 virtual Action action() const SK_OVERRIDE { return kPushLayer_Action; }
529 private: 529 private:
530 SkCanvas::SaveFlags fFlags;
531
532 typedef SkDrawCommand INHERITED; 530 typedef SkDrawCommand INHERITED;
533 }; 531 };
534 532
535 class SkSaveLayerCommand : public SkDrawCommand { 533 class SkSaveLayerCommand : public SkDrawCommand {
536 public: 534 public:
537 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint, 535 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint,
538 SkCanvas::SaveFlags flags); 536 SkCanvas::SaveFlags flags);
539 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 537 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
540 virtual void vizExecute(SkCanvas* canvas) SK_OVERRIDE; 538 virtual void vizExecute(SkCanvas* canvas) SK_OVERRIDE;
541 virtual void trackSaveState(int* state) SK_OVERRIDE; 539 virtual void trackSaveState(int* state) SK_OVERRIDE;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 class SkPopCullCommand : public SkDrawCommand { 623 class SkPopCullCommand : public SkDrawCommand {
626 public: 624 public:
627 SkPopCullCommand(); 625 SkPopCullCommand();
628 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; 626 virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
629 virtual Action action() const { return kPopCull_Action; } 627 virtual Action action() const { return kPopCull_Action; }
630 private: 628 private:
631 typedef SkDrawCommand INHERITED; 629 typedef SkDrawCommand INHERITED;
632 }; 630 };
633 631
634 #endif 632 #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