diff options
author | 2017-03-01 11:28:27 -0500 | |
---|---|---|
committer | 2017-03-01 18:16:09 +0000 | |
commit | af9847ee11ae92dbb369cdca3e6d6ae69a62b973 (patch) | |
tree | ecd2f13f8e26bf5c76f257d8713d47082819191d /src/gpu/instanced/InstancedRendering.h | |
parent | 367eae207627566d877f787acc9c1be8538c21cc (diff) |
Use GrAAType in instanced rendering.
Change-Id: Ifb5a33f908de618d66fcb0dd329f064c1ecfcd63
Reviewed-on: https://skia-review.googlesource.com/9082
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/instanced/InstancedRendering.h')
-rw-r--r-- | src/gpu/instanced/InstancedRendering.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/gpu/instanced/InstancedRendering.h b/src/gpu/instanced/InstancedRendering.h index 03fe242345..03120d21d5 100644 --- a/src/gpu/instanced/InstancedRendering.h +++ b/src/gpu/instanced/InstancedRendering.h @@ -109,18 +109,19 @@ protected: SkString dumpInfo() const override { SkString string; - string.printf("AA: %d, ShapeTypes: 0x%02x, IShapeTypes: 0x%02x, Persp %d, " - "NonSquare: %d, PLoad: %0.2f, Tracked: %d, NumDraws: %d, " - "GeomChanges: %d\n", - (int)fInfo.fAntialiasMode, - fInfo.fShapeTypes, - fInfo.fInnerShapeTypes, - fInfo.fHasPerspective, - fInfo.fNonSquare, - fPixelLoad, - fIsTracked, - fNumDraws, - fNumChangesInGeometry); + string.printf( + "AA: %d, ShapeTypes: 0x%02x, IShapeTypes: 0x%02x, Persp %d, " + "NonSquare: %d, PLoad: %0.2f, Tracked: %d, NumDraws: %d, " + "GeomChanges: %d\n", + (unsigned)fInfo.fAAType, + fInfo.fShapeTypes, + fInfo.fInnerShapeTypes, + fInfo.fHasPerspective, + fInfo.fNonSquare, + fPixelLoad, + fIsTracked, + fNumDraws, + fNumChangesInGeometry); string.append(DumpPipelineInfo(*this->pipeline())); string.append(INHERITED::dumpInfo()); return string; @@ -192,7 +193,7 @@ private: GrAAType*); bool selectAntialiasMode(const SkMatrix& viewMatrix, GrAA aa, const GrInstancedPipelineInfo&, - GrAAType*, AntialiasMode*); + GrAAType*); virtual std::unique_ptr<Op> makeOp() = 0; |