| 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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 } | 1117 } |
| 1118 friend class SkSurface_Base; | 1118 friend class SkSurface_Base; |
| 1119 friend class SkSurface_Gpu; | 1119 friend class SkSurface_Gpu; |
| 1120 | 1120 |
| 1121 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() | 1121 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() |
| 1122 void updateDeviceCMCache(); | 1122 void updateDeviceCMCache(); |
| 1123 | 1123 |
| 1124 friend class SkDrawIter; // needs setupDrawForLayerDevice() | 1124 friend class SkDrawIter; // needs setupDrawForLayerDevice() |
| 1125 friend class AutoDrawLooper; | 1125 friend class AutoDrawLooper; |
| 1126 | 1126 |
| 1127 SkBaseDevice* createLayerDevice(SkBitmap::Config, int width, int height, | 1127 SkBaseDevice* createLayerDevice(const SkImageInfo&); |
| 1128 bool isOpaque); | |
| 1129 | 1128 |
| 1130 SkBaseDevice* init(SkBaseDevice*); | 1129 SkBaseDevice* init(SkBaseDevice*); |
| 1131 | 1130 |
| 1132 // internal methods are not virtual, so they can safely be called by other | 1131 // internal methods are not virtual, so they can safely be called by other |
| 1133 // canvas apis, without confusing subclasses (like SkPictureRecording) | 1132 // canvas apis, without confusing subclasses (like SkPictureRecording) |
| 1134 void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* p
aint); | 1133 void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* p
aint); |
| 1135 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, | 1134 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, |
| 1136 const SkRect& dst, const SkPaint* paint, | 1135 const SkRect& dst, const SkPaint* paint, |
| 1137 DrawBitmapRectFlags flags); | 1136 DrawBitmapRectFlags flags); |
| 1138 void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 1137 void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 bool asROBitmap(SkBitmap*) const; | 1284 bool asROBitmap(SkBitmap*) const; |
| 1286 | 1285 |
| 1287 private: | 1286 private: |
| 1288 SkBitmap fBitmap; // used if peekPixels() fails | 1287 SkBitmap fBitmap; // used if peekPixels() fails |
| 1289 const void* fAddr; // NULL on failure | 1288 const void* fAddr; // NULL on failure |
| 1290 SkImageInfo fInfo; | 1289 SkImageInfo fInfo; |
| 1291 size_t fRowBytes; | 1290 size_t fRowBytes; |
| 1292 }; | 1291 }; |
| 1293 | 1292 |
| 1294 #endif | 1293 #endif |
| OLD | NEW |