| 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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 class SkDrawIter* fImpl; // this points at fStorage | 1154 class SkDrawIter* fImpl; // this points at fStorage |
| 1155 SkPaint fDefaultPaint; | 1155 SkPaint fDefaultPaint; |
| 1156 bool fDone; | 1156 bool fDone; |
| 1157 }; | 1157 }; |
| 1158 | 1158 |
| 1159 // don't call | 1159 // don't call |
| 1160 const SkRegion& internal_private_getTotalClip() const; | 1160 const SkRegion& internal_private_getTotalClip() const; |
| 1161 // don't call | 1161 // don't call |
| 1162 void internal_private_getTotalClipAsPath(SkPath*) const; | 1162 void internal_private_getTotalClipAsPath(SkPath*) const; |
| 1163 | 1163 |
| 1164 void internalPrivate_PreLoad(const SkBitmap& bitmap, const SkIRect& rect); |
| 1165 |
| 1164 protected: | 1166 protected: |
| 1165 // default impl defers to getDevice()->newSurface(info) | 1167 // default impl defers to getDevice()->newSurface(info) |
| 1166 virtual SkSurface* onNewSurface(const SkImageInfo&); | 1168 virtual SkSurface* onNewSurface(const SkImageInfo&); |
| 1167 | 1169 |
| 1168 // default impl defers to its device | 1170 // default impl defers to its device |
| 1169 virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes); | 1171 virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes); |
| 1170 | 1172 |
| 1171 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); | 1173 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); |
| 1172 | 1174 |
| 1173 enum ClipEdgeStyle { | 1175 enum ClipEdgeStyle { |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 bool asROBitmap(SkBitmap*) const; | 1415 bool asROBitmap(SkBitmap*) const; |
| 1414 | 1416 |
| 1415 private: | 1417 private: |
| 1416 SkBitmap fBitmap; // used if peekPixels() fails | 1418 SkBitmap fBitmap; // used if peekPixels() fails |
| 1417 const void* fAddr; // NULL on failure | 1419 const void* fAddr; // NULL on failure |
| 1418 SkImageInfo fInfo; | 1420 SkImageInfo fInfo; |
| 1419 size_t fRowBytes; | 1421 size_t fRowBytes; |
| 1420 }; | 1422 }; |
| 1421 | 1423 |
| 1422 #endif | 1424 #endif |
| OLD | NEW |