summaryrefslogtreecommitdiffstats
path: root/skia/BUILD.gn
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-03-05 15:13:48 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-05 23:14:41 +0000
commitc30f70d94e8a470b57009fbfb14b7c6bd0783cc7 (patch)
treea2b86bef1a71ee9589172f2c932edbeba63c458b /skia/BUILD.gn
parent8fb598c1b7b9a6b944e2ec15e989e80cdf7522c0 (diff)
downloadchromium_src-c30f70d94e8a470b57009fbfb14b7c6bd0783cc7.zip
chromium_src-c30f70d94e8a470b57009fbfb14b7c6bd0783cc7.tar.gz
chromium_src-c30f70d94e8a470b57009fbfb14b7c6bd0783cc7.tar.bz2
Audit GN cflags and defines to match GYP build.
This makes Skia compile on Windows in component build. Review URL: https://codereview.chromium.org/987553002 Cr-Commit-Position: refs/heads/master@{#319357}
Diffstat (limited to 'skia/BUILD.gn')
-rw-r--r--skia/BUILD.gn21
1 files changed, 11 insertions, 10 deletions
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 3e3bc0c..de57eb8 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -139,7 +139,10 @@ config("skia_config") {
defines += []
if (component_mode == "shared_library") {
- defines += [ "SKIA_DLL" ]
+ defines += [
+ "SKIA_DLL",
+ "GR_GL_IGNORE_ES3_MSAA=0",
+ ]
}
if (skia_support_gpu) {
@@ -244,7 +247,12 @@ config("skia_library_config") {
"//third_party/skia/src/utils/win",
]
- defines += [ "SK_FONTHOST_USES_FONTMGR" ]
+ defines += [
+ # On windows, GDI handles are a scarse system-wide resource so we have to
+ # keep the glyph cache, which holds up to 4 GDI handles per entry, to a
+ # fairly small size. http://crbug.com/314387
+ "SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=256",
+ ]
cflags = [
"/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)'
@@ -255,6 +263,7 @@ config("skia_library_config") {
"/wd4554", # 'operator' : check operator precedence for possible error
"/wd4748", # compiler will disable optimizations if a function has inline
# assembly code contains flow control(jmp or jcc) statements.
+
"/wd4800", # forcing value to bool 'true/false'(assigning int to bool).
]
}
@@ -499,14 +508,6 @@ component("skia") {
"//third_party/zlib",
]
- if (is_win) {
- configs -= [
- # Some files define WIN32_LEAN_AND_MEAN and we want to avoid a duplicate
- # definition warning.
- "//build/config/win:lean_and_mean",
- ]
- }
-
if (is_linux) {
configs += [
"//build/config/linux:fontconfig",