summaryrefslogtreecommitdiff
path: root/external/skia/Wdeprecated-copy-dtor.patch.0
diff options
context:
space:
mode:
Diffstat (limited to 'external/skia/Wdeprecated-copy-dtor.patch.0')
-rw-r--r--external/skia/Wdeprecated-copy-dtor.patch.011
1 files changed, 11 insertions, 0 deletions
diff --git a/external/skia/Wdeprecated-copy-dtor.patch.0 b/external/skia/Wdeprecated-copy-dtor.patch.0
new file mode 100644
index 000000000000..335ad9b84b94
--- /dev/null
+++ b/external/skia/Wdeprecated-copy-dtor.patch.0
@@ -0,0 +1,11 @@
+--- tools/sk_app/VulkanWindowContext.h
++++ tools/sk_app/VulkanWindowContext.h
+@@ -33,6 +33,8 @@
+ SharedGrContext() {}
+ GrContext* getGrContext() { return shared ? shared->fContext.get() : nullptr; }
+ ~SharedGrContext() { shared.reset(); checkDestroyShared(); }
++ SharedGrContext(SharedGrContext const &) = default;
++ SharedGrContext & operator =(SharedGrContext const &) = default;
+ bool operator!() const { return !shared; }
+ void reset() { shared.reset(); }
+ private: