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 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 kDefault_InitFlags = 0, | 1335 kDefault_InitFlags = 0, |
1336 kConservativeRasterClip_InitFlag = 1 << 0, | 1336 kConservativeRasterClip_InitFlag = 1 << 0, |
1337 }; | 1337 }; |
1338 SkCanvas(int width, int height, InitFlags); | 1338 SkCanvas(int width, int height, InitFlags); |
1339 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags); | 1339 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags); |
1340 SkCanvas(const SkBitmap&, const SkSurfaceProps&); | 1340 SkCanvas(const SkBitmap&, const SkSurfaceProps&); |
1341 | 1341 |
1342 // needs gettotalclip() | 1342 // needs gettotalclip() |
1343 friend class SkCanvasStateUtils; | 1343 friend class SkCanvasStateUtils; |
1344 | 1344 |
1345 SkBaseDevice* createLayerDevice(const SkImageInfo&); | |
1346 | |
1347 // call this each time we attach ourselves to a device | 1345 // call this each time we attach ourselves to a device |
1348 // - constructor | 1346 // - constructor |
1349 // - internalSaveLayer | 1347 // - internalSaveLayer |
1350 void setupDevice(SkBaseDevice*); | 1348 void setupDevice(SkBaseDevice*); |
1351 | 1349 |
1352 SkBaseDevice* init(SkBaseDevice*, InitFlags); | 1350 SkBaseDevice* init(SkBaseDevice*, InitFlags); |
1353 | 1351 |
1354 /** | 1352 /** |
1355 * DEPRECATED | 1353 * DEPRECATED |
1356 * | 1354 * |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 | 1547 |
1550 class SkCanvasClipVisitor { | 1548 class SkCanvasClipVisitor { |
1551 public: | 1549 public: |
1552 virtual ~SkCanvasClipVisitor(); | 1550 virtual ~SkCanvasClipVisitor(); |
1553 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1551 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1554 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1552 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1555 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1553 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1556 }; | 1554 }; |
1557 | 1555 |
1558 #endif | 1556 #endif |
OLD | NEW |