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

Side by Side Diff: include/core/SkCanvas.h

Issue 334393008: More SaveFlags removal twiddling. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: minor cleanup Created 6 years, 6 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 | « no previous file | include/utils/SkProxyCanvas.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 1194
1195 // Subclass save/restore notifiers. 1195 // Subclass save/restore notifiers.
1196 // Overriders should call the corresponding INHERITED method up the inherita nce chain. 1196 // Overriders should call the corresponding INHERITED method up the inherita nce chain.
1197 // willSaveLayer()'s return value may suppress full layer allocation. 1197 // willSaveLayer()'s return value may suppress full layer allocation.
1198 enum SaveLayerStrategy { 1198 enum SaveLayerStrategy {
1199 kFullLayer_SaveLayerStrategy, 1199 kFullLayer_SaveLayerStrategy,
1200 kNoLayer_SaveLayerStrategy 1200 kNoLayer_SaveLayerStrategy
1201 }; 1201 };
1202 1202
1203 // Transitional, pending external clients cleanup. 1203 // Transitional, pending external clients cleanup.
1204 virtual void willSave(SaveFlags) {} 1204 virtual void willSave(SaveFlags) { this->willSave(); }
1205 1205
1206 virtual void willSave() { this->willSave(kMatrixClip_SaveFlag); } 1206 virtual void willSave() {}
1207 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) { 1207 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) {
1208 return kFullLayer_SaveLayerStrategy; 1208 return kFullLayer_SaveLayerStrategy;
1209 } 1209 }
1210 virtual void willRestore() {} 1210 virtual void willRestore() {}
1211 virtual void didConcat(const SkMatrix&) {} 1211 virtual void didConcat(const SkMatrix&) {}
1212 virtual void didSetMatrix(const SkMatrix&) {} 1212 virtual void didSetMatrix(const SkMatrix&) {}
1213 1213
1214 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1214 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
1215 1215
1216 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, 1216 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x,
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 1497
1498 class SkCanvasClipVisitor { 1498 class SkCanvasClipVisitor {
1499 public: 1499 public:
1500 virtual ~SkCanvasClipVisitor(); 1500 virtual ~SkCanvasClipVisitor();
1501 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1501 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1502 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1502 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1503 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1503 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1504 }; 1504 };
1505 1505
1506 #endif 1506 #endif
OLDNEW
« no previous file with comments | « no previous file | include/utils/SkProxyCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698