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

Side by Side Diff: bench/BitmapRegionDecoderBench.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/BitmapRectBench.cpp ('k') | bench/BitmapRegionDecoderBench.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 BitmapRegionDecoderBench_DEFINED 8 #ifndef BitmapRegionDecoderBench_DEFINED
9 #define BitmapRegionDecoderBench_DEFINED 9 #define BitmapRegionDecoderBench_DEFINED
10 10
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 // Calls encoded->ref() 28 // Calls encoded->ref()
29 BitmapRegionDecoderBench(const char* basename, SkData* encoded, 29 BitmapRegionDecoderBench(const char* basename, SkData* encoded,
30 SkBitmapRegionDecoderInterface::Strategy strategy, SkColorType color Type, 30 SkBitmapRegionDecoderInterface::Strategy strategy, SkColorType color Type,
31 uint32_t sampleSize, const SkIRect& subset); 31 uint32_t sampleSize, const SkIRect& subset);
32 32
33 protected: 33 protected:
34 const char* onGetName() override; 34 const char* onGetName() override;
35 bool isSuitableFor(Backend backend) override; 35 bool isSuitableFor(Backend backend) override;
36 void onDraw(const int n, SkCanvas* canvas) override; 36 void onDraw(const int n, SkCanvas* canvas) override;
37 void onPreDraw() override; 37 void onDelayedSetup() override;
38 38
39 private: 39 private:
40 SkString fName; 40 SkString fName;
41 SkAutoTDelete<SkBitmapRegionDecoderInterface> fBRD; 41 SkAutoTDelete<SkBitmapRegionDecoderInterface> fBRD;
42 SkAutoTUnref<SkData> fData; 42 SkAutoTUnref<SkData> fData;
43 const SkBitmapRegionDecoderInterface::Strategy fStrategy; 43 const SkBitmapRegionDecoderInterface::Strategy fStrategy;
44 const SkColorType fColorType; 44 const SkColorType fColorType;
45 const uint32_t fSampleSize; 45 const uint32_t fSampleSize;
46 const SkIRect fSubset; 46 const SkIRect fSubset;
47 typedef Benchmark INHERITED; 47 typedef Benchmark INHERITED;
48 }; 48 };
49 #endif // BitmapRegionDecoderBench_DEFINED 49 #endif // BitmapRegionDecoderBench_DEFINED
OLDNEW
« no previous file with comments | « bench/BitmapRectBench.cpp ('k') | bench/BitmapRegionDecoderBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698