提交 ed3014b3 编写于 作者: C Chinmay Garde

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

Required by the Dart dependency.
上级 7182341f
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册