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

Side by Side Diff: src/utils/SkDumpCanvas.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/SkDeferredCanvas.cpp ('k') | src/utils/SkLuaCanvas.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 2011 Google Inc. 3 * Copyright 2011 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 #include "SkDumpCanvas.h" 9 #include "SkDumpCanvas.h"
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 vsnprintf(buffer, BUFFER_SIZE, format, args); 185 vsnprintf(buffer, BUFFER_SIZE, format, args);
186 va_end(args); 186 va_end(args);
187 187
188 if (fDumper) { 188 if (fDumper) {
189 fDumper->dump(this, verb, buffer, paint); 189 fDumper->dump(this, verb, buffer, paint);
190 } 190 }
191 } 191 }
192 192
193 /////////////////////////////////////////////////////////////////////////////// 193 ///////////////////////////////////////////////////////////////////////////////
194 194
195 void SkDumpCanvas::willSave(SaveFlags flags) { 195 void SkDumpCanvas::willSave() {
196 this->dump(kSave_Verb, NULL, "save(0x%X)", flags); 196 this->dump(kSave_Verb, NULL, "save()");
197 this->INHERITED::willSave(flags); 197 this->INHERITED::willSave();
198 } 198 }
199 199
200 SkCanvas::SaveLayerStrategy SkDumpCanvas::willSaveLayer(const SkRect* bounds, co nst SkPaint* paint, 200 SkCanvas::SaveLayerStrategy SkDumpCanvas::willSaveLayer(const SkRect* bounds, co nst SkPaint* paint,
201 SaveFlags flags) { 201 SaveFlags flags) {
202 SkString str; 202 SkString str;
203 str.printf("saveLayer(0x%X)", flags); 203 str.printf("saveLayer(0x%X)", flags);
204 if (bounds) { 204 if (bounds) {
205 str.append(" bounds"); 205 str.append(" bounds");
206 toString(*bounds, &str); 206 toString(*bounds, &str);
207 } 207 }
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 519
520 /////////////////////////////////////////////////////////////////////////////// 520 ///////////////////////////////////////////////////////////////////////////////
521 521
522 static void dumpToDebugf(const char text[], void*) { 522 static void dumpToDebugf(const char text[], void*) {
523 SkDebugf("%s\n", text); 523 SkDebugf("%s\n", text);
524 } 524 }
525 525
526 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} 526 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {}
527 527
528 #endif 528 #endif
OLDNEW
« no previous file with comments | « src/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkLuaCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698