diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-10-23 17:29:19 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-11-08 07:15:03 +0000 |
commit | 7db70f1e85f628f78df84eb195473fb315e812fe (patch) | |
tree | cafdfd0b01e9d2e3acb82f84858d1f8984227a3a /src/core/type_conversion.h | |
parent | 0ef5bbc16781fc0d0ea72e396b1d6e23cd588dc9 (diff) |
Implement CopyFromSurface
Means we can get screenshots in devtools.
Change-Id: I7b50d6ac5a54d236573bcf5f58ae872bd50dccad
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/type_conversion.h')
-rw-r--r-- | src/core/type_conversion.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/type_conversion.h b/src/core/type_conversion.h index b9e210c22..afc3c3336 100644 --- a/src/core/type_conversion.h +++ b/src/core/type_conversion.h @@ -194,6 +194,8 @@ inline QImage toQImage(const SkBitmap &bitmap, QImage::Format format) QImage toQImage(const SkBitmap &bitmap); QImage toQImage(const gfx::ImageSkiaRep &imageSkiaRep); +SkBitmap toSkBitmap(const QImage &image); + QIcon toQIcon(const std::vector<SkBitmap> &bitmaps); inline QMatrix4x4 toQt(const SkMatrix44 &m) |