Allow specifying the max texture count on the bots
https://codereview.chromium.org/50413011/
git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@12020 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/common_variables.gypi b/common_variables.gypi
index 579ce70..e3bd0d8 100644
--- a/common_variables.gypi
+++ b/common_variables.gypi
@@ -84,7 +84,8 @@
'skia_nv_path_rendering%': 0,
'skia_stroke_path_rendering%': 0,
'skia_android_path_rendering%': 0,
- 'skia_texture_cache_mb_limit%': 0,
+ 'skia_resource_cache_mb_limit%': 0,
+ 'skia_resource_cache_count_limit%': 0,
'skia_angle%': 0,
'skia_directwrite%': 0,
'skia_gpu%': 1,
@@ -140,7 +141,8 @@
'skia_nv_path_rendering%': '<(skia_nv_path_rendering)',
'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)',
'skia_android_path_rendering%': '<(skia_android_path_rendering)',
- 'skia_texture_cache_mb_limit%': '<(skia_texture_cache_mb_limit)',
+ 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)',
+ 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)',
'skia_angle%': '<(skia_angle)',
'skia_arch_width%': '<(skia_arch_width)',
'skia_arch_type%': '<(skia_arch_type)',
diff --git a/gpu.gyp b/gpu.gyp
index cb39c59..057c2fb 100644
--- a/gpu.gyp
+++ b/gpu.gyp
@@ -50,9 +50,14 @@
],
},
}],
- [ 'skia_texture_cache_mb_limit != 0', {
+ [ 'skia_resource_cache_mb_limit != 0', {
'defines': [
- 'GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT=<(skia_texture_cache_mb_limit)',
+ 'GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT=<(skia_resource_cache_mb_limit)',
+ ],
+ }],
+ [ 'skia_resource_cache_count_limit != 0', {
+ 'defines': [
+ 'GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT=<(skia_resource_cache_count_limit)',
],
}],
],