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

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

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/SkDrawCommand.h ('k') | src/utils/debugger/SkObjectParser.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 9
10 #include "SkDrawCommand.h" 10 #include "SkDrawCommand.h"
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 : INHERITED(ROTATE) { 833 : INHERITED(ROTATE) {
834 fDegrees = degrees; 834 fDegrees = degrees;
835 835
836 fInfo.push(SkObjectParser::ScalarToString(degrees, "SkScalar degrees: ")); 836 fInfo.push(SkObjectParser::ScalarToString(degrees, "SkScalar degrees: "));
837 } 837 }
838 838
839 void SkRotateCommand::execute(SkCanvas* canvas) { 839 void SkRotateCommand::execute(SkCanvas* canvas) {
840 canvas->rotate(fDegrees); 840 canvas->rotate(fDegrees);
841 } 841 }
842 842
843 SkSaveCommand::SkSaveCommand(SkCanvas::SaveFlags flags) 843 SkSaveCommand::SkSaveCommand()
844 : INHERITED(SAVE) { 844 : INHERITED(SAVE) {
845 fFlags = flags;
846 fInfo.push(SkObjectParser::SaveFlagsToString(flags));
847 } 845 }
848 846
849 void SkSaveCommand::execute(SkCanvas* canvas) { 847 void SkSaveCommand::execute(SkCanvas* canvas) {
850 canvas->save(fFlags); 848 canvas->save();
851 } 849 }
852 850
853 void SkSaveCommand::trackSaveState(int* state) { 851 void SkSaveCommand::trackSaveState(int* state) {
854 (*state)++; 852 (*state)++;
855 } 853 }
856 854
857 SkSaveLayerCommand::SkSaveLayerCommand(const SkRect* bounds, const SkPaint* pain t, 855 SkSaveLayerCommand::SkSaveLayerCommand(const SkRect* bounds, const SkPaint* pain t,
858 SkCanvas::SaveFlags flags) 856 SkCanvas::SaveFlags flags)
859 : INHERITED(SAVE_LAYER) { 857 : INHERITED(SAVE_LAYER) {
860 if (NULL != bounds) { 858 if (NULL != bounds) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 p.setColor(SK_ColorCYAN); 959 p.setColor(SK_ColorCYAN);
962 p.setStyle(SkPaint::kStroke_Style); 960 p.setStyle(SkPaint::kStroke_Style);
963 canvas->drawRect(fCullRect, p); 961 canvas->drawRect(fCullRect, p);
964 } 962 }
965 963
966 SkPopCullCommand::SkPopCullCommand() : INHERITED(POP_CULL) { } 964 SkPopCullCommand::SkPopCullCommand() : INHERITED(POP_CULL) { }
967 965
968 void SkPopCullCommand::execute(SkCanvas* canvas) { 966 void SkPopCullCommand::execute(SkCanvas* canvas) {
969 canvas->popCull(); 967 canvas->popCull();
970 } 968 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDrawCommand.h ('k') | src/utils/debugger/SkObjectParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698