mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
7182341f85
commit
ed3014b3d3
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user