Bump up the mac_sdk_min GN arg to 10.8 and fix deprecated declaration.

Required by the Dart dependency.
This commit is contained in:
Chinmay Garde 2016-04-06 11:20:04 -07:00
parent 7182341f85
commit ed3014b3d3
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import("//build/config/chrome_build.gni")
declare_args() {
# Minimum supported version of the Mac SDK.
mac_sdk_min = "10.6"
mac_sdk_min = "10.8"
# Path to a specific version of the Mac SDKJ, not including a backslash at
# the end. If empty, the path to the lowest version greater than or equal to

View File

@ -278,10 +278,10 @@ bool GLContextCGL::GetTotalGpuMemory(size_t* bytes) {
GLint video_memory = 0;
if (CGLDescribeRenderer(renderer_info,
renderer_index,
kCGLRPVideoMemory,
kCGLRPVideoMemoryMegabytes,
&video_memory) != kCGLNoError)
continue;
*bytes = video_memory;
*bytes = (video_memory * 1000000);
return true;
}