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

Unified Diff: bench/RefCntBench.cpp

Issue 2183473005: Clean up some unused atomic routines. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months 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 | include/private/SkAtomics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RefCntBench.cpp
diff --git a/bench/RefCntBench.cpp b/bench/RefCntBench.cpp
index cf7cc305bd19f3f79f97b5e91eb7c0ebe70f8e73..5e9e3a096025bbad2525838c0226e36cc5e032f1 100644
--- a/bench/RefCntBench.cpp
+++ b/bench/RefCntBench.cpp
@@ -38,30 +38,6 @@ private:
typedef Benchmark INHERITED;
};
-class AtomicInc64 : public Benchmark {
-public:
- AtomicInc64() : fX(0) {}
-
- bool isSuitableFor(Backend backend) override {
- return backend == kNonRendering_Backend;
- }
-
-protected:
- const char* onGetName() override {
- return "atomic_inc_64";
- }
-
- void onDraw(int loops, SkCanvas*) override {
- for (int i = 0; i < loops; ++i) {
- sk_atomic_inc(&fX);
- }
- }
-
-private:
- int64_t fX;
- typedef Benchmark INHERITED;
-};
-
class RefCntBench_Stack : public Benchmark {
public:
bool isSuitableFor(Backend backend) override {
@@ -238,7 +214,6 @@ private:
///////////////////////////////////////////////////////////////////////////////
DEF_BENCH( return new AtomicInc32(); )
-DEF_BENCH( return new AtomicInc64(); )
DEF_BENCH( return new RefCntBench_Stack(); )
DEF_BENCH( return new RefCntBench_Heap(); )
« no previous file with comments | « no previous file | include/private/SkAtomics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698