diff options
author | 2011-09-27 19:10:05 +0000 | |
---|---|---|
committer | 2011-09-27 19:10:05 +0000 | |
commit | 92669014aa7ab821cdc09cc9ad610316eb16b490 (patch) | |
tree | a33fcb3135749e84812d9e4b5e0549e0fdca53f5 /gpu/src/GrClip.cpp | |
parent | c12e1b138e736f70d698f14a3ffc74af6f3d8621 (diff) |
Add SkSTArray, hide stack storage cons in SkTArray, unify SkTArray init logic
Review URL: http://codereview.appspot.com/5127044/
git-svn-id: http://skia.googlecode.com/svn/trunk@2342 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrClip.cpp')
-rw-r--r-- | gpu/src/GrClip.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gpu/src/GrClip.cpp b/gpu/src/GrClip.cpp index afa143a95b..a02d9f4504 100644 --- a/gpu/src/GrClip.cpp +++ b/gpu/src/GrClip.cpp @@ -10,30 +10,25 @@ #include "GrClip.h" -GrClip::GrClip() - : fList(&fListStorage) { +GrClip::GrClip() { fConservativeBounds.setEmpty(); fConservativeBoundsValid = true; } -GrClip::GrClip(const GrClip& src) - : fList(&fListStorage) { +GrClip::GrClip(const GrClip& src) { *this = src; } -GrClip::GrClip(const GrIRect& rect) - : fList(&fListStorage) { +GrClip::GrClip(const GrIRect& rect) { this->setFromIRect(rect); } -GrClip::GrClip(const GrRect& rect) - : fList(&fListStorage) { +GrClip::GrClip(const GrRect& rect) { this->setFromRect(rect); } GrClip::GrClip(GrClipIterator* iter, GrScalar tx, GrScalar ty, - const GrRect* bounds) - : fList(&fListStorage) { + const GrRect* bounds) { this->setFromIterator(iter, tx, ty, bounds); } |