| OLD | NEW | 
|   1 /* |   1 /* | 
|   2  * Copyright 2014 Google Inc. |   2  * Copyright 2014 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 RecordingBench_DEFINED |   8 #ifndef RecordingBench_DEFINED | 
|   9 #define RecordingBench_DEFINED |   9 #define RecordingBench_DEFINED | 
|  10  |  10  | 
|  11 #include "Benchmark.h" |  11 #include "Benchmark.h" | 
|  12 #include "SkPicture.h" |  12 #include "SkPicture.h" | 
 |  13 #include "SkLiteDL.h" | 
|  13  |  14  | 
|  14 class RecordingBench : public Benchmark { |  15 class RecordingBench : public Benchmark { | 
|  15 public: |  16 public: | 
|  16     RecordingBench(const char* name, const SkPicture*, bool useBBH, bool lite); |  17     RecordingBench(const char* name, const SkPicture*, bool useBBH, bool lite); | 
|  17  |  18  | 
|  18 protected: |  19 protected: | 
|  19     const char* onGetName() override; |  20     const char* onGetName() override; | 
|  20     bool isSuitableFor(Backend) override; |  21     bool isSuitableFor(Backend) override; | 
|  21     void onDraw(int loops, SkCanvas*) override; |  22     void onDraw(int loops, SkCanvas*) override; | 
|  22     SkIPoint onGetSize() override; |  23     SkIPoint onGetSize() override; | 
|  23  |  24  | 
|  24 private: |  25 private: | 
|  25     sk_sp<const SkPicture> fSrc; |  26     sk_sp<const SkPicture> fSrc; | 
|  26     SkString fName; |  27     SkString fName; | 
 |  28     sk_sp<SkLiteDL> fDL; | 
|  27     bool fUseBBH; |  29     bool fUseBBH; | 
|  28     bool fLite; |  | 
|  29  |  30  | 
|  30     typedef Benchmark INHERITED; |  31     typedef Benchmark INHERITED; | 
|  31 }; |  32 }; | 
|  32  |  33  | 
|  33 #endif//RecordingBench_DEFINED |  34 #endif//RecordingBench_DEFINED | 
| OLD | NEW |