diff options
author | Michael Brüning <michael.bruning@qt.io> | 2019-11-12 18:25:30 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-30 11:22:52 +0100 |
commit | 5c40a87813edacb5301b647c24556acede4ac14d (patch) | |
tree | c8f0bc4a460741c0fd76a256f3fc06dd638cddf3 /chromium | |
parent | 719c19d7b23b909180df1dbb871318e6e010787f (diff) | |
download | qtwebengine-chromium-5c40a87813edacb5301b647c24556acede4ac14d.tar.gz |
[macOS] Fix build error with new deployment target
The updated deployement target introduced in 2e63d12183 in qtbase
invalidated some forward declarations for the shape detection service
on macOS.
Quick-fix the build by importing the header for the Visions framework.
Task-number: QTBUG-79940
Change-Id: I83954546cbb5b143ba8777d58561b5eaa2648a2c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'chromium')
-rw-r--r-- | chromium/services/shape_detection/detection_utils_mac.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/services/shape_detection/detection_utils_mac.h b/chromium/services/shape_detection/detection_utils_mac.h index b97cd0e5367..cb1bd664784 100644 --- a/chromium/services/shape_detection/detection_utils_mac.h +++ b/chromium/services/shape_detection/detection_utils_mac.h @@ -16,6 +16,10 @@ #include "third_party/skia/include/core/SkBitmap.h" #include "ui/gfx/geometry/rect_f.h" +#if defined(MAC_OS_X_VERSION_10_13) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_13 +#import <Vision/Vision.h> +#endif + namespace shape_detection { // Takes a ScopedSharedBufferHandle with dimensions and produces a new CIImage |