diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-27 18:06:03 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-27 18:06:03 +0000 |
commit | 594aa5e39db35910992112f2837906a1be9bc9bd (patch) | |
tree | da1ae022b3bc58ee59d85cd0059b678bf4c86729 /bench/HairlinePathBench.cpp | |
parent | be39f37e112735e1cff9d05f78ace4ce8cbf6525 (diff) |
Revert of Workaround for assertion in NVPR config in bench. (https://codereview.chromium.org/131503007/)
Reason for revert:
broke the build.
Original issue's description:
> Workaround for assertion in NVPR config in bench.
>
> BUG=skia:2078
>
> Committed: http://code.google.com/p/skia/source/detail?r=13196
R=robertphillips@google.com
TBR=robertphillips@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:2078
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/148473002
git-svn-id: http://skia.googlecode.com/svn/trunk@13199 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/HairlinePathBench.cpp')
-rw-r--r-- | bench/HairlinePathBench.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/bench/HairlinePathBench.cpp b/bench/HairlinePathBench.cpp index 59eb1e833a..87557e8467 100644 --- a/bench/HairlinePathBench.cpp +++ b/bench/HairlinePathBench.cpp @@ -4,9 +4,6 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - -#include "GrTest.h" -#include "GrDrawTargetCaps.h" #include "SkBenchmark.h" #include "SkCanvas.h" #include "SkPaint.h" @@ -173,20 +170,6 @@ public: weight); } } - - virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE { - GrContext* context = canvas->getGrContext(); - // This is a workaround for skbug.com/2078. See also skbug.com/2033. - if (NULL != context) { - GrTestTarget tt; - context->getTestTarget(&tt); - if (tt.target()->caps()->pathRenderingSupport()) { - return; - } - } - INHERITED::onDraw(loops, canvas); - } - private: typedef HairlinePathBench INHERITED; }; |