Unreviewed build fix for High Sierra.
authorjustin_fan@apple.com <justin_fan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2019 04:00:21 +0000 (04:00 +0000)
committerjustin_fan@apple.com <justin_fan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Mar 2019 04:00:21 +0000 (04:00 +0000)
* platform/graphics/gpu/cocoa/GPUBufferMetal.mm: Should fix "global constructor" error.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242407 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gpu/cocoa/GPUBufferMetal.mm

index 9702053..47670a4 100644 (file)
@@ -1,3 +1,9 @@
+2019-03-04  Justin Fan  <justin_fan@apple.com>
+
+        Unreviewed build fix for High Sierra.
+
+        * platform/graphics/gpu/cocoa/GPUBufferMetal.mm: Should fix "global constructor" error.
+
 2019-03-04  Brent Fulgham  <bfulgham@apple.com>
 
         Use a SQLite database to hold the ResourceLoadStatistics data
index 869ae90..999fc06 100644 (file)
@@ -39,7 +39,7 @@
 
 namespace WebCore {
 
-static const auto readOnlyFlags = OptionSet<GPUBufferUsage::Flags> { GPUBufferUsage::Flags::Index, GPUBufferUsage::Flags::Vertex, GPUBufferUsage::Flags::Uniform, GPUBufferUsage::Flags::TransferSource };
+static constexpr auto readOnlyFlags = OptionSet<GPUBufferUsage::Flags> { GPUBufferUsage::Flags::Index, GPUBufferUsage::Flags::Vertex, GPUBufferUsage::Flags::Uniform, GPUBufferUsage::Flags::TransferSource };
 
 
 bool GPUBuffer::validateBufferUsage(const GPUDevice& device, OptionSet<GPUBufferUsage::Flags> usage)