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

Side by Side Diff: bench/LightingBench.cpp

Issue 1904673003: Rein in the use of SkDevice.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | debugger/QT/SkGLWidget.h » ('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 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
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); )
OLDNEW
« no previous file with comments | « no previous file | debugger/QT/SkGLWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698