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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 | 1333 |
1334 class MCRec; | 1334 class MCRec; |
1335 | 1335 |
1336 SkAutoTUnref<SkClipStack> fClipStack; | 1336 SkAutoTUnref<SkClipStack> fClipStack; |
1337 SkDeque fMCStack; | 1337 SkDeque fMCStack; |
1338 // points to top of stack | 1338 // points to top of stack |
1339 MCRec* fMCRec; | 1339 MCRec* fMCRec; |
1340 // the first N recs that can fit here mean we won't call malloc | 1340 // the first N recs that can fit here mean we won't call malloc |
1341 enum { | 1341 enum { |
1342 kMCRecSize = 128, // most recent measurement | 1342 kMCRecSize = 128, // most recent measurement |
1343 kMCRecCount = 8, // common depth for save/restores | 1343 kMCRecCount = 32, // common depth for save/restores |
1344 kDeviceCMSize = 136, // most recent measurement | 1344 kDeviceCMSize = 136, // most recent measurement |
1345 }; | 1345 }; |
1346 intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)]; | 1346 intptr_t fMCRecStorage[kMCRecSize * kMCRecCount / sizeof(intptr_t)]; |
1347 intptr_t fDeviceCMStorage[kDeviceCMSize / sizeof(intptr_t)]; | 1347 intptr_t fDeviceCMStorage[kDeviceCMSize / sizeof(intptr_t)]; |
1348 | 1348 |
1349 const SkSurfaceProps fProps; | 1349 const SkSurfaceProps fProps; |
1350 | 1350 |
1351 int fSaveCount; // value returned by getSaveCount() | 1351 int fSaveCount; // value returned by getSaveCount() |
1352 | 1352 |
1353 SkMetaData* fMetaData; | 1353 SkMetaData* fMetaData; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1561 | 1561 |
1562 class SkCanvasClipVisitor { | 1562 class SkCanvasClipVisitor { |
1563 public: | 1563 public: |
1564 virtual ~SkCanvasClipVisitor(); | 1564 virtual ~SkCanvasClipVisitor(); |
1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1568 }; | 1568 }; |
1569 | 1569 |
1570 #endif | 1570 #endif |
OLD | NEW |