Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4202)

Unified Diff: bench/HairlinePathBench.cpp

Issue 685213005: Avoid warning in nanobench related to loop count with nvprmsaa4 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/HairlinePathBench.cpp
diff --git a/bench/HairlinePathBench.cpp b/bench/HairlinePathBench.cpp
index 7b413c4677d3ba64d5f95331db3b65c69edc5a29..37fc57d188d22ef8b9eb4926beadf89515c00905 100644
--- a/bench/HairlinePathBench.cpp
+++ b/bench/HairlinePathBench.cpp
@@ -12,11 +12,6 @@
#include "SkShader.h"
#include "SkString.h"
-#if SK_SUPPORT_GPU
-#include "GrDrawTargetCaps.h"
-#include "GrTest.h"
-#endif
-
enum Flags {
kBig_Flag = 1 << 0,
kAA_Flag = 1 << 1
@@ -177,21 +172,6 @@ public:
}
}
- virtual void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE {
-#if SK_SUPPORT_GPU
- GrContext* context = canvas->getGrContext();
- // This is a workaround for skbug.com/2078. See also skbug.com/2033.
- if (context) {
- GrTestTarget tt;
- context->getTestTarget(&tt);
- if (tt.target()->caps()->pathRenderingSupport()) {
- return;
- }
- }
-#endif
- INHERITED::onDraw(loops, canvas);
- }
-
private:
typedef HairlinePathBench INHERITED;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698