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

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

Issue 338913002: Prepare for internal SaveFlags removal. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | no next file » | 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 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes); 1193 virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes);
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 virtual void willSave(SaveFlags) {} 1204 virtual void willSave(SaveFlags) {}
1205
1206 virtual void willSave() { this->willSave(kMatrixClip_SaveFlag); }
1204 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) { 1207 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) {
1205 return kFullLayer_SaveLayerStrategy; 1208 return kFullLayer_SaveLayerStrategy;
1206 } 1209 }
1207 virtual void willRestore() {} 1210 virtual void willRestore() {}
1208 virtual void didConcat(const SkMatrix&) {} 1211 virtual void didConcat(const SkMatrix&) {}
1209 virtual void didSetMatrix(const SkMatrix&) {} 1212 virtual void didSetMatrix(const SkMatrix&) {}
1210 1213
1211 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); 1214 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
1212 1215
1213 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
1494 1497
1495 class SkCanvasClipVisitor { 1498 class SkCanvasClipVisitor {
1496 public: 1499 public:
1497 virtual ~SkCanvasClipVisitor(); 1500 virtual ~SkCanvasClipVisitor();
1498 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1501 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1499 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1502 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1500 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1503 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1501 }; 1504 };
1502 1505
1503 #endif 1506 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698