File tree 5 files changed +10
-10
lines changed
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ struct Matrix {
39
39
};
40
40
41
41
// ----------------------------------------------------------------------------
42
- // / Construts a default identity matrix.
42
+ // / Constructs a default identity matrix.
43
43
// /
44
44
constexpr Matrix ()
45
45
// clang-format off
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ bool Allocator::RequiresExplicitHostSynchronization(StorageMode mode) {
15
15
return false ;
16
16
}
17
17
18
- #if OS_IOS
18
+ #if FML_OS_IOS
19
19
// StorageMode::kHostVisible is MTLStorageModeShared already.
20
20
return false ;
21
- #else // OS_IOS
21
+ #else // FML_OS_IOS
22
22
// StorageMode::kHostVisible is MTLResourceStorageModeManaged.
23
23
return true ;
24
- #endif // OS_IOS
24
+ #endif // FML_OS_IOS
25
25
}
26
26
27
27
} // namespace impeller
Original file line number Diff line number Diff line change 32
32
static MTLResourceOptions ToMTLResourceOptions (StorageMode type) {
33
33
switch (type) {
34
34
case StorageMode::kHostVisible :
35
- #if OS_IOS
35
+ #if FML_OS_IOS
36
36
return MTLResourceStorageModeShared ;
37
37
#else
38
38
return MTLResourceStorageModeManaged ;
39
39
#endif
40
40
case StorageMode::kDevicePrivate :
41
41
return MTLResourceStorageModePrivate ;
42
42
case StorageMode::kDeviceTransient :
43
- #if OS_IOS
43
+ #if FML_OS_IOS
44
44
if (@available (iOS 10.0 , *)) {
45
45
return MTLResourceStorageModeMemoryless;
46
46
} else {
@@ -57,15 +57,15 @@ static MTLResourceOptions ToMTLResourceOptions(StorageMode type) {
57
57
static MTLStorageMode ToMTLStorageMode (StorageMode mode) {
58
58
switch (mode) {
59
59
case StorageMode::kHostVisible :
60
- #if OS_IOS
60
+ #if FML_OS_IOS
61
61
return MTLStorageModeShared ;
62
62
#else
63
63
return MTLStorageModeManaged ;
64
64
#endif
65
65
case StorageMode::kDevicePrivate :
66
66
return MTLStorageModePrivate ;
67
67
case StorageMode::kDeviceTransient :
68
- #if OS_IOS
68
+ #if FML_OS_IOS
69
69
if (@available (iOS 10.0 , *)) {
70
70
return MTLStorageModeMemoryless;
71
71
} else {
Original file line number Diff line number Diff line change 79
79
// Making this call is never necessary on iOS because there is no
80
80
// MTLResourceStorageModeManaged mode. Only the MTLStorageModeShared mode is
81
81
// available.
82
- #if !OS_IOS
82
+ #if !FML_OS_IOS
83
83
if (Allocator::RequiresExplicitHostSynchronization (mode_)) {
84
84
[buffer_ didModifyRange: NSMakeRange (offset, source_range.length)];
85
85
}
Original file line number Diff line number Diff line change 12
12
namespace impeller {
13
13
14
14
constexpr size_t DefaultUniformAlignment () {
15
- #if OS_IOS
15
+ #if FML_OS_IOS
16
16
return 16u ;
17
17
#elif FML_OS_MACOSX
18
18
return 256u ;
You can’t perform that action at this time.
0 commit comments