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

Side by Side Diff: bench/MemoryBench.cpp

Issue 361723002: Have Clang builders build in C++11 mode. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | gyp/common_conditions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkChunkAlloc.h" 10 #include "SkChunkAlloc.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 , fWrite(write) 80 , fWrite(write)
81 , fUseCalloc(useCalloc) { 81 , fUseCalloc(useCalloc) {
82 fName.printf("memory_%s", useCalloc ? "calloc" : "malloc_bzero"); 82 fName.printf("memory_%s", useCalloc ? "calloc" : "malloc_bzero");
83 if (read && write) { 83 if (read && write) {
84 fName.appendf("_rw"); 84 fName.appendf("_rw");
85 } else if (read) { 85 } else if (read) {
86 fName.appendf("_r"); 86 fName.appendf("_r");
87 } else if (write) { 87 } else if (write) {
88 fName.appendf("_w"); 88 fName.appendf("_w");
89 } 89 }
90 fName.appendf("_"SK_SIZE_T_SPECIFIER, num); 90 fName.appendf("_" SK_SIZE_T_SPECIFIER, num);
91 } 91 }
92 92
93 virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { 93 virtual bool isSuitableFor(Backend backend) SK_OVERRIDE {
94 return backend == kNonRendering_Backend; 94 return backend == kNonRendering_Backend;
95 } 95 }
96 96
97 protected: 97 protected:
98 virtual const char* onGetName() SK_OVERRIDE { 98 virtual const char* onGetName() SK_OVERRIDE {
99 return fName.c_str(); 99 return fName.c_str();
100 } 100 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 DEF_BENCH(return new ZerosBench(300, 1, 1, 1)) 156 DEF_BENCH(return new ZerosBench(300, 1, 1, 1))
157 157
158 DEF_BENCH(return new ZerosBench(4, 0, 0, 0)) 158 DEF_BENCH(return new ZerosBench(4, 0, 0, 0))
159 DEF_BENCH(return new ZerosBench(4, 0, 0, 1)) 159 DEF_BENCH(return new ZerosBench(4, 0, 0, 1))
160 DEF_BENCH(return new ZerosBench(4, 0, 1, 0)) 160 DEF_BENCH(return new ZerosBench(4, 0, 1, 0))
161 DEF_BENCH(return new ZerosBench(4, 0, 1, 1)) 161 DEF_BENCH(return new ZerosBench(4, 0, 1, 1))
162 DEF_BENCH(return new ZerosBench(4, 1, 0, 0)) 162 DEF_BENCH(return new ZerosBench(4, 1, 0, 0))
163 DEF_BENCH(return new ZerosBench(4, 1, 0, 1)) 163 DEF_BENCH(return new ZerosBench(4, 1, 0, 1))
164 DEF_BENCH(return new ZerosBench(4, 1, 1, 0)) 164 DEF_BENCH(return new ZerosBench(4, 1, 1, 0))
165 DEF_BENCH(return new ZerosBench(4, 1, 1, 1)) 165 DEF_BENCH(return new ZerosBench(4, 1, 1, 1))
OLDNEW
« no previous file with comments | « no previous file | gyp/common_conditions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698