diff options
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-29 19:25:21 +0000 |
---|---|---|
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-29 19:25:21 +0000 |
commit | b340cf7e3d43f726c3b7b00fe23c728739e5557e (patch) | |
tree | 92e89eceea3e681863c45fba66700ee23d0cceb7 /gm/blurs.cpp | |
parent | d33819aeb69cfdf07a1fdd35958503282f5daede (diff) |
Only skip pipe playback for blurs GM in FIXED mode.
Only skip it when it would actually fail. Also add a comment
describing why it fails:
// SkCanvas::drawCircle, used by this test, performs a quick reject.
// The large size given to the device used by SkGPipeCanvas means that
// the device clip will not be set properly and circles will be
// rejected when in FIXED.
Review URL: https://codereview.appspot.com/6354058
git-svn-id: http://skia.googlecode.com/svn/trunk@4414 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/blurs.cpp')
-rw-r--r-- | gm/blurs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gm/blurs.cpp b/gm/blurs.cpp index a1f3ef08b6..bb688b9c1b 100644 --- a/gm/blurs.cpp +++ b/gm/blurs.cpp @@ -17,9 +17,15 @@ public: } protected: +#ifdef SK_SCALAR_IS_FIXED virtual uint32_t onGetFlags() const SK_OVERRIDE { + // SkCanvas::drawCircle, used by this test, performs a quick reject. + // The large size given to the device used by SkGPipeCanvas means that + // the device clip will not be set properly and circles will be + // rejected when in FIXED. return this->INHERITED::onGetFlags() | GM::kSkipPipe_Flag; } +#endif virtual SkString onShortName() { return SkString("blurs"); |