| 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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() | 1363 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() |
| 1364 void updateDeviceCMCache(); | 1364 void updateDeviceCMCache(); |
| 1365 | 1365 |
| 1366 void doSave(); | 1366 void doSave(); |
| 1367 void checkForDeferredSave(); | 1367 void checkForDeferredSave(); |
| 1368 | 1368 |
| 1369 friend class SkDrawIter; // needs setupDrawForLayerDevice() | 1369 friend class SkDrawIter; // needs setupDrawForLayerDevice() |
| 1370 friend class AutoDrawLooper; | 1370 friend class AutoDrawLooper; |
| 1371 friend class SkLua; // needs top layer size and offset | 1371 friend class SkLua; // needs top layer size and offset |
| 1372 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip | 1372 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip |
| 1373 friend class SkDeferredDevice; // needs getTopDevice() | |
| 1374 friend class SkSurface_Raster; // needs getDevice() | 1373 friend class SkSurface_Raster; // needs getDevice() |
| 1375 friend class SkRecorder; // InitFlags | 1374 friend class SkRecorder; // InitFlags |
| 1376 friend class SkNoSaveLayerCanvas; // InitFlags | 1375 friend class SkNoSaveLayerCanvas; // InitFlags |
| 1377 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp
s*, InitFlags) | 1376 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp
s*, InitFlags) |
| 1378 friend class SkPictureRecord; // predrawNotify (why does it need it? <reed
>) | 1377 friend class SkPictureRecord; // predrawNotify (why does it need it? <reed
>) |
| 1379 | 1378 |
| 1380 enum InitFlags { | 1379 enum InitFlags { |
| 1381 kDefault_InitFlags = 0, | 1380 kDefault_InitFlags = 0, |
| 1382 kConservativeRasterClip_InitFlag = 1 << 0, | 1381 kConservativeRasterClip_InitFlag = 1 << 0, |
| 1383 }; | 1382 }; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 | 1564 |
| 1566 class SkCanvasClipVisitor { | 1565 class SkCanvasClipVisitor { |
| 1567 public: | 1566 public: |
| 1568 virtual ~SkCanvasClipVisitor(); | 1567 virtual ~SkCanvasClipVisitor(); |
| 1569 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1568 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1570 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1569 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1571 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1570 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1572 }; | 1571 }; |
| 1573 | 1572 |
| 1574 #endif | 1573 #endif |
| OLD | NEW |