vulkan: Fix parameter naming consistency for Android compilation
Renames 'size' parameter to 'length' in IsValidMapping() methods to avoid conflicts with Android NDK macros that define 'size'. This fixes compilation issues on Android platforms where the 'size' macro is defined.
This commit is contained in:
parent
0b5a1c07b4
commit
2bce10f740
@ -200,8 +200,8 @@ public:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
bool IsValidMapping(size_t offset, size_t size) const {
|
||||
return (offset + size) <= backing_size;
|
||||
bool IsValidMapping(size_t offset, size_t length) const {
|
||||
return (offset + length) <= backing_size;
|
||||
}
|
||||
|
||||
bool IsDirectMappingEnabled() const {
|
||||
@ -611,8 +611,8 @@ public:
|
||||
virtual_base = nullptr;
|
||||
}
|
||||
|
||||
bool IsValidMapping(size_t offset, size_t size) const {
|
||||
return (offset + size) <= backing_size;
|
||||
bool IsValidMapping(size_t offset, size_t length) const {
|
||||
return (offset + length) <= backing_size;
|
||||
}
|
||||
|
||||
bool IsDirectMappingEnabled() const {
|
||||
@ -692,7 +692,7 @@ public:
|
||||
|
||||
void EnableDirectMappedAddress() {}
|
||||
|
||||
bool IsValidMapping(size_t offset, size_t size) const {
|
||||
bool IsValidMapping(size_t offset, size_t length) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user