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

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

Issue 1905683003: SkCpu w/o static initializer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: back to static-initializer on Windows 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 | « src/core/SkCpu.cpp ('k') | no next file » | 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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 8
9 #include "SkGraphics.h" 9 #include "SkGraphics.h"
10 10
11 #include "SkBlitter.h" 11 #include "SkBlitter.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "SkCpu.h"
13 #include "SkGeometry.h" 14 #include "SkGeometry.h"
14 #include "SkGlyphCache.h" 15 #include "SkGlyphCache.h"
15 #include "SkImageFilter.h" 16 #include "SkImageFilter.h"
16 #include "SkMath.h" 17 #include "SkMath.h"
17 #include "SkMatrix.h" 18 #include "SkMatrix.h"
18 #include "SkOpts.h" 19 #include "SkOpts.h"
19 #include "SkPath.h" 20 #include "SkPath.h"
20 #include "SkPathEffect.h" 21 #include "SkPathEffect.h"
21 #include "SkPixelRef.h" 22 #include "SkPixelRef.h"
22 #include "SkRefCnt.h" 23 #include "SkRefCnt.h"
(...skipping 16 matching lines...) Expand all
39 if (minor) { 40 if (minor) {
40 *minor = SKIA_VERSION_MINOR; 41 *minor = SKIA_VERSION_MINOR;
41 } 42 }
42 if (patch) { 43 if (patch) {
43 *patch = SKIA_VERSION_PATCH; 44 *patch = SKIA_VERSION_PATCH;
44 } 45 }
45 } 46 }
46 47
47 void SkGraphics::Init() { 48 void SkGraphics::Init() {
48 // SkGraphics::Init() must be thread-safe and idempotent. 49 // SkGraphics::Init() must be thread-safe and idempotent.
50 SkCpu::CacheRuntimeFeatures();
49 SkOpts::Init(); 51 SkOpts::Init();
50 52
51 #ifdef SK_DEVELOPER 53 #ifdef SK_DEVELOPER
52 skRTConfRegistry().possiblyDumpFile(); 54 skRTConfRegistry().possiblyDumpFile();
53 skRTConfRegistry().validate(); 55 skRTConfRegistry().validate();
54 if (skRTConfRegistry().hasNonDefault()) { 56 if (skRTConfRegistry().hasNonDefault()) {
55 SkDebugf("Non-default runtime configuration options:\n"); 57 SkDebugf("Non-default runtime configuration options:\n");
56 skRTConfRegistry().printNonDefault(); 58 skRTConfRegistry().printNonDefault();
57 } 59 }
58 #endif 60 #endif
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 118 }
117 } 119 }
118 flags = nextSemi + 1; 120 flags = nextSemi + 1;
119 } while (nextSemi); 121 } while (nextSemi);
120 } 122 }
121 123
122 // Call SkGraphics::Init() automatically for Google3 processes. 124 // Call SkGraphics::Init() automatically for Google3 processes.
123 #if defined(GOOGLE3) 125 #if defined(GOOGLE3)
124 static SkAutoGraphics autoGraphics; 126 static SkAutoGraphics autoGraphics;
125 #endif 127 #endif
OLDNEW
« no previous file with comments | « src/core/SkCpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698