OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "Benchmark.h" | 7 #include "Benchmark.h" |
8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkDevice.h" | |
10 #include "SkLightingImageFilter.h" | 9 #include "SkLightingImageFilter.h" |
11 #include "SkPoint3.h" | 10 #include "SkPoint3.h" |
12 | 11 |
13 #define FILTER_WIDTH_SMALL SkIntToScalar(32) | 12 #define FILTER_WIDTH_SMALL SkIntToScalar(32) |
14 #define FILTER_HEIGHT_SMALL SkIntToScalar(32) | 13 #define FILTER_HEIGHT_SMALL SkIntToScalar(32) |
15 #define FILTER_WIDTH_LARGE SkIntToScalar(256) | 14 #define FILTER_WIDTH_LARGE SkIntToScalar(256) |
16 #define FILTER_HEIGHT_LARGE SkIntToScalar(256) | 15 #define FILTER_HEIGHT_LARGE SkIntToScalar(256) |
17 | 16 |
18 class LightingBaseBench : public Benchmark { | 17 class LightingBaseBench : public Benchmark { |
19 public: | 18 public: |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 DEF_BENCH( return new LightingDistantLitDiffuseBench(true); ) | 238 DEF_BENCH( return new LightingDistantLitDiffuseBench(true); ) |
240 DEF_BENCH( return new LightingDistantLitDiffuseBench(false); ) | 239 DEF_BENCH( return new LightingDistantLitDiffuseBench(false); ) |
241 DEF_BENCH( return new LightingSpotLitDiffuseBench(true); ) | 240 DEF_BENCH( return new LightingSpotLitDiffuseBench(true); ) |
242 DEF_BENCH( return new LightingSpotLitDiffuseBench(false); ) | 241 DEF_BENCH( return new LightingSpotLitDiffuseBench(false); ) |
243 DEF_BENCH( return new LightingPointLitSpecularBench(true); ) | 242 DEF_BENCH( return new LightingPointLitSpecularBench(true); ) |
244 DEF_BENCH( return new LightingPointLitSpecularBench(false); ) | 243 DEF_BENCH( return new LightingPointLitSpecularBench(false); ) |
245 DEF_BENCH( return new LightingDistantLitSpecularBench(true); ) | 244 DEF_BENCH( return new LightingDistantLitSpecularBench(true); ) |
246 DEF_BENCH( return new LightingDistantLitSpecularBench(false); ) | 245 DEF_BENCH( return new LightingDistantLitSpecularBench(false); ) |
247 DEF_BENCH( return new LightingSpotLitSpecularBench(true); ) | 246 DEF_BENCH( return new LightingSpotLitSpecularBench(true); ) |
248 DEF_BENCH( return new LightingSpotLitSpecularBench(false); ) | 247 DEF_BENCH( return new LightingSpotLitSpecularBench(false); ) |
OLD | NEW |