Skip to content

Commit

Permalink
IOS macros have not been namespaced yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent 7e5364a commit c66b7fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions impeller/renderer/backend/metal/allocator_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
static MTLResourceOptions ToMTLResourceOptions(StorageMode type) {
switch (type) {
case StorageMode::kHostVisible:
#if FML_OS_IOS
#if OS_IOS
return MTLResourceStorageModeShared;
#else
return MTLResourceStorageModeManaged;
#endif
case StorageMode::kDevicePrivate:
return MTLResourceStorageModePrivate;
case StorageMode::kDeviceTransient:
#if FML_OS_IOS
#if OS_IOS
if (@available(iOS 10.0, *)) {
return MTLResourceStorageModeMemoryless;
} else {
Expand All @@ -57,15 +57,15 @@ static MTLResourceOptions ToMTLResourceOptions(StorageMode type) {
static MTLStorageMode ToMTLStorageMode(StorageMode mode) {
switch (mode) {
case StorageMode::kHostVisible:
#if FML_OS_IOS
#if OS_IOS
return MTLStorageModeShared;
#else
return MTLStorageModeManaged;
#endif
case StorageMode::kDevicePrivate:
return MTLStorageModePrivate;
case StorageMode::kDeviceTransient:
#if FML_OS_IOS
#if OS_IOS
if (@available(iOS 10.0, *)) {
return MTLStorageModeMemoryless;
} else {
Expand Down

0 comments on commit c66b7fb

Please sign in to comment.