Skip to content

Commit

Permalink
Remove usage of SkToBool (flutter#38401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjlubick authored Dec 19, 2022
1 parent 290f3ef commit 24a6a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flutter_vma/flutter_skia_vma.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void FlutterSkiaVulkanMemoryAllocator::getAllocInfo(
if (VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT & memFlags) {
flags |= skgpu::VulkanAlloc::kMappable_Flag;
}
if (!SkToBool(VK_MEMORY_PROPERTY_HOST_COHERENT_BIT & memFlags)) {
if (!(VK_MEMORY_PROPERTY_HOST_COHERENT_BIT & memFlags)) {
flags |= skgpu::VulkanAlloc::kNoncoherent_Flag;
}
if (VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT & memFlags) {
Expand Down

0 comments on commit 24a6a91

Please sign in to comment.