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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.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/SkDebugCanvas.h ('k') | src/utils/debugger/SkDrawCommand.h » ('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 "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 583
584 void SkDebugCanvas::onPopCull() { 584 void SkDebugCanvas::onPopCull() {
585 this->addDrawCommand(new SkPopCullCommand()); 585 this->addDrawCommand(new SkPopCullCommand());
586 } 586 }
587 587
588 void SkDebugCanvas::willRestore() { 588 void SkDebugCanvas::willRestore() {
589 this->addDrawCommand(new SkRestoreCommand()); 589 this->addDrawCommand(new SkRestoreCommand());
590 this->INHERITED::willRestore(); 590 this->INHERITED::willRestore();
591 } 591 }
592 592
593 void SkDebugCanvas::willSave(SaveFlags flags) { 593 void SkDebugCanvas::willSave() {
594 this->addDrawCommand(new SkSaveCommand(flags)); 594 this->addDrawCommand(new SkSaveCommand());
595 this->INHERITED::willSave(flags); 595 this->INHERITED::willSave();
596 } 596 }
597 597
598 SkCanvas::SaveLayerStrategy SkDebugCanvas::willSaveLayer(const SkRect* bounds, c onst SkPaint* paint, 598 SkCanvas::SaveLayerStrategy SkDebugCanvas::willSaveLayer(const SkRect* bounds, c onst SkPaint* paint,
599 SaveFlags flags) { 599 SaveFlags flags) {
600 this->addDrawCommand(new SkSaveLayerCommand(bounds, paint, flags)); 600 this->addDrawCommand(new SkSaveLayerCommand(bounds, paint, flags));
601 this->INHERITED::willSaveLayer(bounds, paint, flags); 601 this->INHERITED::willSaveLayer(bounds, paint, flags);
602 // No need for a full layer. 602 // No need for a full layer.
603 return kNoLayer_SaveLayerStrategy; 603 return kNoLayer_SaveLayerStrategy;
604 } 604 }
605 605
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 730 }
731 731
732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) { 732 bool SkDebugCanvas::lastClipStackData(const SkPath& devPath) {
733 if (fCalledAddStackData) { 733 if (fCalledAddStackData) {
734 fClipStackData.appendf("<br>"); 734 fClipStackData.appendf("<br>");
735 addPathData(devPath, "pathOut"); 735 addPathData(devPath, "pathOut");
736 return true; 736 return true;
737 } 737 }
738 return false; 738 return false;
739 } 739 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | src/utils/debugger/SkDrawCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698