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

Side by Side Diff: bench/DecodingBench.h

Issue 1379853003: Fix for nexus 5 crashing in GL benches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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/ColorPrivBench.cpp ('k') | bench/DecodingBench.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 #ifndef DecodingBench_DEFINED 8 #ifndef DecodingBench_DEFINED
9 #define DecodingBench_DEFINED 9 #define DecodingBench_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 * 21 *
22 */ 22 */
23 class DecodingBench : public Benchmark { 23 class DecodingBench : public Benchmark {
24 public: 24 public:
25 DecodingBench(SkString path, SkColorType colorType); 25 DecodingBench(SkString path, SkColorType colorType);
26 26
27 protected: 27 protected:
28 const char* onGetName() override; 28 const char* onGetName() override;
29 bool isSuitableFor(Backend backend) override; 29 bool isSuitableFor(Backend backend) override;
30 void onDraw(const int n, SkCanvas* canvas) override; 30 void onDraw(const int n, SkCanvas* canvas) override;
31 void onPreDraw() override; 31 void onDelayedSetup() override;
32 32
33 private: 33 private:
34 SkString fName; 34 SkString fName;
35 SkColorType fColorType; 35 SkColorType fColorType;
36 SkAutoTUnref<SkData> fData; 36 SkAutoTUnref<SkData> fData;
37 SkAutoMalloc fPixelStorage; 37 SkAutoMalloc fPixelStorage;
38 typedef Benchmark INHERITED; 38 typedef Benchmark INHERITED;
39 }; 39 };
40 #endif // DecodingBench_DEFINED 40 #endif // DecodingBench_DEFINED
OLDNEW
« no previous file with comments | « bench/ColorPrivBench.cpp ('k') | bench/DecodingBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698