diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-13 13:25:30 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-13 13:25:30 +0000 |
commit | 178a267a6cb1405805caf23fe074d68b509f76d3 (patch) | |
tree | 3197ca79129e1b86315688216003021d910e51dd /src | |
parent | 1f1543f012b8834ea760175a023eb127bde2b895 (diff) |
Address warnings from clang build bot
http://codereview.appspot.com/6506111/
git-svn-id: http://skia.googlecode.com/svn/trunk@5518 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/animator/SkDisplayEvent.h | 2 | ||||
-rw-r--r-- | src/animator/SkDisplayPost.h | 2 | ||||
-rw-r--r-- | src/animator/SkDrawExtraPathEffect.cpp | 4 | ||||
-rw-r--r-- | src/animator/SkDrawGradient.h | 2 | ||||
-rw-r--r-- | src/animator/SkDrawGroup.h | 2 | ||||
-rw-r--r-- | src/animator/SkDrawMatrix.h | 2 | ||||
-rw-r--r-- | src/animator/SkDrawPath.cpp | 2 | ||||
-rw-r--r-- | src/animator/SkDrawPath.h | 4 | ||||
-rw-r--r-- | src/core/SkPictureRecord.cpp | 4 | ||||
-rw-r--r-- | src/core/SkPictureStateTree.cpp | 2 | ||||
-rw-r--r-- | src/core/SkPictureStateTree.h | 12 | ||||
-rw-r--r-- | src/core/SkRTree.cpp | 2 |
12 files changed, 21 insertions, 19 deletions
diff --git a/src/animator/SkDisplayEvent.h b/src/animator/SkDisplayEvent.h index 8b541fc046..ef8ec68b9b 100644 --- a/src/animator/SkDisplayEvent.h +++ b/src/animator/SkDisplayEvent.h @@ -34,7 +34,7 @@ class SkDisplayEvent : public SkDisplayable { }; SkDisplayEvent(); virtual ~SkDisplayEvent(); - virtual bool add(SkAnimateMaker& , SkDisplayable* child); + virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; virtual bool contains(SkDisplayable*); virtual SkDisplayable* contains(const SkString& ); #ifdef SK_DEBUG diff --git a/src/animator/SkDisplayPost.h b/src/animator/SkDisplayPost.h index b417bab6d5..57ae31cce5 100644 --- a/src/animator/SkDisplayPost.h +++ b/src/animator/SkDisplayPost.h @@ -27,7 +27,7 @@ class SkPost : public SkDisplayable { }; SkPost(); virtual ~SkPost(); - virtual bool add(SkAnimateMaker& , SkDisplayable* child); + virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; virtual bool childrenNeedDisposing() const; virtual void dirty(); #ifdef SK_DUMP_ENABLED diff --git a/src/animator/SkDrawExtraPathEffect.cpp b/src/animator/SkDrawExtraPathEffect.cpp index c9de254a65..65d9cba533 100644 --- a/src/animator/SkDrawExtraPathEffect.cpp +++ b/src/animator/SkDrawExtraPathEffect.cpp @@ -22,7 +22,7 @@ class SkDrawShapePathEffect : public SkDrawPathEffect { DECLARE_PRIVATE_MEMBER_INFO(DrawShapePathEffect); SkDrawShapePathEffect(); virtual ~SkDrawShapePathEffect(); - virtual bool add(SkAnimateMaker& , SkDisplayable* ); + virtual bool add(SkAnimateMaker& , SkDisplayable* ) SK_OVERRIDE; virtual SkPathEffect* getPathEffect(); protected: SkDrawable* addPath; @@ -60,7 +60,7 @@ class SkDrawComposePathEffect : public SkDrawPathEffect { DECLARE_EXTRAS_MEMBER_INFO(SkDrawComposePathEffect); SkDrawComposePathEffect(SkDisplayTypes ); virtual ~SkDrawComposePathEffect(); - virtual bool add(SkAnimateMaker& , SkDisplayable* ); + virtual bool add(SkAnimateMaker& , SkDisplayable* ) SK_OVERRIDE; virtual SkPathEffect* getPathEffect(); virtual bool isPaint() const; private: diff --git a/src/animator/SkDrawGradient.h b/src/animator/SkDrawGradient.h index d01ee7097e..d7fc694c99 100644 --- a/src/animator/SkDrawGradient.h +++ b/src/animator/SkDrawGradient.h @@ -20,7 +20,7 @@ class SkDrawGradient : public SkDrawShader { DECLARE_PRIVATE_MEMBER_INFO(DrawGradient); SkDrawGradient(); virtual ~SkDrawGradient(); - virtual bool add(SkAnimateMaker& , SkDisplayable* child); + virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; #ifdef SK_DUMP_ENABLED virtual void dumpRest(SkAnimateMaker*); #endif diff --git a/src/animator/SkDrawGroup.h b/src/animator/SkDrawGroup.h index 8124650320..a63a50eb83 100644 --- a/src/animator/SkDrawGroup.h +++ b/src/animator/SkDrawGroup.h @@ -19,7 +19,7 @@ public: DECLARE_MEMBER_INFO(Group); SkGroup(); virtual ~SkGroup(); - virtual bool add(SkAnimateMaker& , SkDisplayable* child); + virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; virtual bool contains(SkDisplayable* ); SkGroup* copy(); SkBool copySet(int index); diff --git a/src/animator/SkDrawMatrix.h b/src/animator/SkDrawMatrix.h index e3034244de..cb781e71ad 100644 --- a/src/animator/SkDrawMatrix.h +++ b/src/animator/SkDrawMatrix.h @@ -21,7 +21,7 @@ class SkDrawMatrix : public SkDrawable { DECLARE_DRAW_MEMBER_INFO(Matrix); SkDrawMatrix(); virtual ~SkDrawMatrix(); - virtual bool add(SkAnimateMaker& , SkDisplayable* child); + virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; virtual bool childrenNeedDisposing() const; virtual void dirty(); virtual bool draw(SkAnimateMaker& ); diff --git a/src/animator/SkDrawPath.cpp b/src/animator/SkDrawPath.cpp index 81cbdb1c24..858db5438b 100644 --- a/src/animator/SkDrawPath.cpp +++ b/src/animator/SkDrawPath.cpp @@ -188,7 +188,7 @@ const SkMemberInfo SkPolyline::fInfo[] = { DEFINE_GET_MEMBER(SkPolyline); -bool SkPolyline::add(SkAnimateMaker& , SkDisplayable*) const { +bool SkPolyline::add(SkAnimateMaker& , SkDisplayable*) { return false; } diff --git a/src/animator/SkDrawPath.h b/src/animator/SkDrawPath.h index 5c26312759..76e2e7e09a 100644 --- a/src/animator/SkDrawPath.h +++ b/src/animator/SkDrawPath.h @@ -19,7 +19,7 @@ class SkDrawPath : public SkBoundable { DECLARE_DRAW_MEMBER_INFO(Path); SkDrawPath(); virtual ~SkDrawPath(); - virtual bool add(SkAnimateMaker& , SkDisplayable* child); + virtual bool add(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE; bool childHasID() { return SkToBool(fChildHasID); } virtual bool childrenNeedDisposing() const; virtual void dirty(); @@ -51,7 +51,7 @@ private: class SkPolyline : public SkDrawPath { DECLARE_MEMBER_INFO(Polyline); - virtual bool add(SkAnimateMaker& , SkDisplayable*) const; + virtual bool add(SkAnimateMaker& , SkDisplayable*) SK_OVERRIDE; virtual void onEndElement(SkAnimateMaker& ); protected: SkTDScalarArray points; diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index 83f462534f..9c488491f6 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -19,13 +19,13 @@ enum { }; SkPictureRecord::SkPictureRecord(uint32_t flags) : + fBoundingHierarchy(NULL), + fStateTree(NULL), fFlattenableHeap(HEAP_BLOCK_SIZE), fMatrices(&fFlattenableHeap), fPaints(&fFlattenableHeap), fRegions(&fFlattenableHeap), fWriter(MIN_WRITER_SIZE), - fBoundingHierarchy(NULL), - fStateTree(NULL), fRecordFlags(flags) { #ifdef SK_DEBUG_SIZE fPointBytes = fRectBytes = fTextBytes = 0; diff --git a/src/core/SkPictureStateTree.cpp b/src/core/SkPictureStateTree.cpp index fc36e4a22c..8426c9e1bb 100644 --- a/src/core/SkPictureStateTree.cpp +++ b/src/core/SkPictureStateTree.cpp @@ -83,9 +83,9 @@ SkPictureStateTree::Iterator::Iterator(const SkTDArray<void*>& draws, SkCanvas* : fDraws(draws) , fCanvas(canvas) , fCurrentNode(root) + , fPlaybackMatrix(canvas->getTotalMatrix()) , fCurrentMatrix(NULL) , fPlaybackIndex(0) - , fPlaybackMatrix(canvas->getTotalMatrix()) , fSave(false) { } diff --git a/src/core/SkPictureStateTree.h b/src/core/SkPictureStateTree.h index 995f3f72ae..8ce3050a91 100644 --- a/src/core/SkPictureStateTree.h +++ b/src/core/SkPictureStateTree.h @@ -74,20 +74,22 @@ public: Iterator(const SkTDArray<void*>& draws, SkCanvas* canvas, Node* root); // The draws this iterator is associated with const SkTDArray<void*>& fDraws; - // The matrix of the canvas we're playing back into - const SkMatrix fPlaybackMatrix; + + // canvas this is playing into (so we can insert saves/restores as necessary) + SkCanvas* fCanvas; // current state node Node* fCurrentNode; // List of nodes whose state we need to apply to reach TargetNode SkTDArray<Node*> fNodes; + + // The matrix of the canvas we're playing back into + const SkMatrix fPlaybackMatrix; + // Cache of current matrix, so we can avoid redundantly setting it SkMatrix* fCurrentMatrix; - // canvas this is playing into (so we can insert saves/restores as necessary) - SkCanvas* fCanvas; - // current position in the array of draws int fPlaybackIndex; // Whether or not we need to do a save next iteration diff --git a/src/core/SkRTree.cpp b/src/core/SkRTree.cpp index 96f6b18c81..42c1c999d4 100644 --- a/src/core/SkRTree.cpp +++ b/src/core/SkRTree.cpp @@ -399,7 +399,7 @@ void SkRTree::validate() { if (this->isEmpty()) { return; } - SkASSERT(fCount == this->validateSubtree(fRoot.fChild.subtree, fRoot.fBounds, true)); + SkASSERT(fCount == (size_t)this->validateSubtree(fRoot.fChild.subtree, fRoot.fBounds, true)); #endif } |