diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-06 20:58:57 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-06 20:58:57 +0000 |
commit | 4c2443e36fdc6c095b17e90baa4a2f26a6f00b08 (patch) | |
tree | 48a14bb302faa65074efad65e015281f24285aec /src/core/SkTLList.h | |
parent | 12b4e27ae1a29460e91a59f38122483e1faec697 (diff) |
Use ReduceClipStack in ClipMaskManager.
R=robertphillips@google.com
This will require some gpu rebaselining (complexclip_rect_aa, complexclip_aa, aaclip, simpleaaclip, complexclip_aa_layer)xy
Review URL: https://codereview.appspot.com/6884051
git-svn-id: http://skia.googlecode.com/svn/trunk@6694 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkTLList.h')
-rw-r--r-- | src/core/SkTLList.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/SkTLList.h b/src/core/SkTLList.h index 43554eac31..bc85daa215 100644 --- a/src/core/SkTLList.h +++ b/src/core/SkTLList.h @@ -5,6 +5,9 @@ * found in the LICENSE file. */ +#ifndef SkTLList_DEFINED +#define SkTLList_DEFINED + #include "SkTInternalLList.h" #include "SkTemplates.h" @@ -95,6 +98,11 @@ public: Iter headIter() const { return Iter(*this, Iter::kHead_IterStart); } Iter tailIter() const { return Iter(*this, Iter::kTail_IterStart); } + T* head() { return Iter(*this, Iter::kHead_IterStart).get(); } + T* tail() { return Iter(*this, Iter::kTail_IterStart).get(); } + const T* head() const { return Iter(*this, Iter::kHead_IterStart).get(); } + const T* tail() const { return Iter(*this, Iter::kTail_IterStart).get(); } + void popHead() { this->validate(); Node* node = fList.head(); @@ -372,3 +380,4 @@ void operator delete(void*, #define SkNEW_INSERT_AT_LLIST_TAIL(list, type_name, args) \ SkNEW_INSERT_IN_LLIST_AFTER((list), (list)->tailIter(), type_name, args) +#endif |