| 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 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 } | 1312 } |
| 1313 friend class SkSurface_Base; | 1313 friend class SkSurface_Base; |
| 1314 friend class SkSurface_Gpu; | 1314 friend class SkSurface_Gpu; |
| 1315 | 1315 |
| 1316 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() | 1316 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() |
| 1317 void updateDeviceCMCache(); | 1317 void updateDeviceCMCache(); |
| 1318 | 1318 |
| 1319 friend class SkDrawIter; // needs setupDrawForLayerDevice() | 1319 friend class SkDrawIter; // needs setupDrawForLayerDevice() |
| 1320 friend class AutoDrawLooper; | 1320 friend class AutoDrawLooper; |
| 1321 friend class SkLua; // needs top layer size and offset | 1321 friend class SkLua; // needs top layer size and offset |
| 1322 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip |
| 1322 friend class SkDeferredDevice; // needs getTopDevice() | 1323 friend class SkDeferredDevice; // needs getTopDevice() |
| 1323 | 1324 |
| 1324 SkBaseDevice* createLayerDevice(const SkImageInfo&); | 1325 SkBaseDevice* createLayerDevice(const SkImageInfo&); |
| 1325 | 1326 |
| 1326 SkBaseDevice* init(SkBaseDevice*); | 1327 SkBaseDevice* init(SkBaseDevice*); |
| 1327 | 1328 |
| 1328 /** | 1329 /** |
| 1329 * DEPRECATED | 1330 * DEPRECATED |
| 1330 * | 1331 * |
| 1331 * Specify a device for this canvas to draw into. If it is not null, its | 1332 * Specify a device for this canvas to draw into. If it is not null, its |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1500 bool asROBitmap(SkBitmap*) const; | 1501 bool asROBitmap(SkBitmap*) const; |
| 1501 | 1502 |
| 1502 private: | 1503 private: |
| 1503 SkBitmap fBitmap; // used if peekPixels() fails | 1504 SkBitmap fBitmap; // used if peekPixels() fails |
| 1504 const void* fAddr; // NULL on failure | 1505 const void* fAddr; // NULL on failure |
| 1505 SkImageInfo fInfo; | 1506 SkImageInfo fInfo; |
| 1506 size_t fRowBytes; | 1507 size_t fRowBytes; |
| 1507 }; | 1508 }; |
| 1508 | 1509 |
| 1509 #endif | 1510 #endif |
| OLD | NEW |