| OLD | NEW |
| 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 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1238 // Overriders should call the corresponding INHERITED method up the inherita
nce chain. | 1238 // Overriders should call the corresponding INHERITED method up the inherita
nce chain. |
| 1239 // willSaveLayer()'s return value may suppress full layer allocation. | 1239 // willSaveLayer()'s return value may suppress full layer allocation. |
| 1240 enum SaveLayerStrategy { | 1240 enum SaveLayerStrategy { |
| 1241 kFullLayer_SaveLayerStrategy, | 1241 kFullLayer_SaveLayerStrategy, |
| 1242 kNoLayer_SaveLayerStrategy | 1242 kNoLayer_SaveLayerStrategy |
| 1243 }; | 1243 }; |
| 1244 virtual void willSave(SaveFlags); | 1244 virtual void willSave(SaveFlags); |
| 1245 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags); | 1245 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags); |
| 1246 virtual void willRestore(); | 1246 virtual void willRestore(); |
| 1247 | 1247 |
| 1248 virtual void didTranslate(SkScalar, SkScalar); | |
| 1249 virtual void didScale(SkScalar, SkScalar); | |
| 1250 virtual void didRotate(SkScalar); | |
| 1251 virtual void didSkew(SkScalar, SkScalar); | |
| 1252 virtual void didConcat(const SkMatrix&); | 1248 virtual void didConcat(const SkMatrix&); |
| 1253 virtual void didSetMatrix(const SkMatrix&); | 1249 virtual void didSetMatrix(const SkMatrix&); |
| 1254 | 1250 |
| 1255 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); | 1251 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); |
| 1256 | 1252 |
| 1257 enum ClipEdgeStyle { | 1253 enum ClipEdgeStyle { |
| 1258 kHard_ClipEdgeStyle, | 1254 kHard_ClipEdgeStyle, |
| 1259 kSoft_ClipEdgeStyle | 1255 kSoft_ClipEdgeStyle |
| 1260 }; | 1256 }; |
| 1261 | 1257 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 bool asROBitmap(SkBitmap*) const; | 1494 bool asROBitmap(SkBitmap*) const; |
| 1499 | 1495 |
| 1500 private: | 1496 private: |
| 1501 SkBitmap fBitmap; // used if peekPixels() fails | 1497 SkBitmap fBitmap; // used if peekPixels() fails |
| 1502 const void* fAddr; // NULL on failure | 1498 const void* fAddr; // NULL on failure |
| 1503 SkImageInfo fInfo; | 1499 SkImageInfo fInfo; |
| 1504 size_t fRowBytes; | 1500 size_t fRowBytes; |
| 1505 }; | 1501 }; |
| 1506 | 1502 |
| 1507 #endif | 1503 #endif |
| OLD | NEW |