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

Side by Side Diff: src/core/SkGraphics.cpp

Issue 1255193002: Lay groundwork for SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo Created 5 years, 4 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkGraphics.h" 10 #include "SkGraphics.h"
11 11
12 #include "SkBlitter.h" 12 #include "SkBlitter.h"
13 #include "SkCanvas.h" 13 #include "SkCanvas.h"
14 #include "SkGeometry.h" 14 #include "SkGeometry.h"
15 #include "SkMath.h" 15 #include "SkMath.h"
16 #include "SkMatrix.h" 16 #include "SkMatrix.h"
17 #include "SkOpts.h"
17 #include "SkPath.h" 18 #include "SkPath.h"
18 #include "SkPathEffect.h" 19 #include "SkPathEffect.h"
19 #include "SkPixelRef.h" 20 #include "SkPixelRef.h"
20 #include "SkRefCnt.h" 21 #include "SkRefCnt.h"
21 #include "SkRTConf.h" 22 #include "SkRTConf.h"
22 #include "SkScalerContext.h" 23 #include "SkScalerContext.h"
23 #include "SkShader.h" 24 #include "SkShader.h"
24 #include "SkStream.h" 25 #include "SkStream.h"
25 #include "SkTSearch.h" 26 #include "SkTSearch.h"
26 #include "SkTime.h" 27 #include "SkTime.h"
(...skipping 16 matching lines...) Expand all
43 44
44 #ifdef BUILD_EMBOSS_TABLE 45 #ifdef BUILD_EMBOSS_TABLE
45 extern void SkEmbossMask_BuildTable(); 46 extern void SkEmbossMask_BuildTable();
46 #endif 47 #endif
47 48
48 #ifdef BUILD_RADIALGRADIENT_TABLE 49 #ifdef BUILD_RADIALGRADIENT_TABLE
49 extern void SkRadialGradient_BuildTable(); 50 extern void SkRadialGradient_BuildTable();
50 #endif 51 #endif
51 52
52 void SkGraphics::Init() { 53 void SkGraphics::Init() {
54 SkOpts::Init();
53 #ifdef SK_DEVELOPER 55 #ifdef SK_DEVELOPER
54 skRTConfRegistry().possiblyDumpFile(); 56 skRTConfRegistry().possiblyDumpFile();
55 skRTConfRegistry().validate(); 57 skRTConfRegistry().validate();
56 if (skRTConfRegistry().hasNonDefault()) { 58 if (skRTConfRegistry().hasNonDefault()) {
57 SkDebugf("Non-default runtime configuration options:\n"); 59 SkDebugf("Non-default runtime configuration options:\n");
58 skRTConfRegistry().printNonDefault(); 60 skRTConfRegistry().printNonDefault();
59 } 61 }
60 #endif 62 #endif
61 63
62 #ifdef BUILD_EMBOSS_TABLE 64 #ifdef BUILD_EMBOSS_TABLE
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 if (nextEqual) { 173 if (nextEqual) {
172 val = (size_t) atoi(nextEqual + 1); 174 val = (size_t) atoi(nextEqual + 1);
173 } 175 }
174 (gFlags[i].fFunc)(val); 176 (gFlags[i].fFunc)(val);
175 break; 177 break;
176 } 178 }
177 } 179 }
178 flags = nextSemi + 1; 180 flags = nextSemi + 1;
179 } while (nextSemi); 181 } while (nextSemi);
180 } 182 }
OLDNEW
« no previous file with comments | « gyp/opts.gypi ('k') | src/core/SkOpts.h » ('j') | src/core/SkOpts.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698