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

Side by Side Diff: bench/subset/SubsetTranslateBench.h

Issue 1379923005: Remove const from `const int loops`. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: n too Created 5 years, 2 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 | « bench/subset/SubsetSingleBench.cpp ('k') | bench/subset/SubsetTranslateBench.cpp » ('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 2015 Google Inc. 2 * Copyright 2015 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 "SkImageDecoder.h" 9 #include "SkImageDecoder.h"
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
(...skipping 11 matching lines...) Expand all
22 22
23 SubsetTranslateBench(const SkString& path, 23 SubsetTranslateBench(const SkString& path,
24 SkColorType colorType, 24 SkColorType colorType,
25 uint32_t subsetWidth, 25 uint32_t subsetWidth,
26 uint32_t subsetHeight, 26 uint32_t subsetHeight,
27 bool useCodec); 27 bool useCodec);
28 28
29 protected: 29 protected:
30 const char* onGetName() override; 30 const char* onGetName() override;
31 bool isSuitableFor(Backend backend) override; 31 bool isSuitableFor(Backend backend) override;
32 void onDraw(const int n, SkCanvas* canvas) override; 32 void onDraw(int n, SkCanvas* canvas) override;
33 33
34 private: 34 private:
35 SkString fName; 35 SkString fName;
36 SkColorType fColorType; 36 SkColorType fColorType;
37 const uint32_t fSubsetWidth; 37 const uint32_t fSubsetWidth;
38 const uint32_t fSubsetHeight; 38 const uint32_t fSubsetHeight;
39 const bool fUseCodec; 39 const bool fUseCodec;
40 SkAutoTDelete<SkMemoryStream> fStream; 40 SkAutoTDelete<SkMemoryStream> fStream;
41 typedef Benchmark INHERITED; 41 typedef Benchmark INHERITED;
42 }; 42 };
OLDNEW
« no previous file with comments | « bench/subset/SubsetSingleBench.cpp ('k') | bench/subset/SubsetTranslateBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698