diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-08-24 14:48:58 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-08-24 17:34:05 (GMT) |
commit | b46c17bbe424788040c53fe4f58adfee4644ecfe (patch) | |
tree | 2254a5e2d7bfd6807a36a8d5e6ba9862a3e53f45 /src/plugins/gfxdrivers/directfb/qdirectfbscreen.h | |
parent | dc40eeacdca375ac03e5d7b6a6c183609c6b9889 (diff) | |
download | Qt-b46c17bbe424788040c53fe4f58adfee4644ecfe.zip Qt-b46c17bbe424788040c53fe4f58adfee4644ecfe.tar.gz Qt-b46c17bbe424788040c53fe4f58adfee4644ecfe.tar.bz2 |
Improve error reporting in DFBScreen
Make it possible to pass a DFBResult* around to get notified of errors
in calling functions.
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins/gfxdrivers/directfb/qdirectfbscreen.h')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbscreen.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h index 67df739..5778b05 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h +++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.h @@ -149,13 +149,16 @@ public: Q_DECLARE_FLAGS(SurfaceCreationOptions, SurfaceCreationOption); IDirectFBSurface *createDFBSurface(const QImage &image, QImage::Format format, - SurfaceCreationOptions options); + SurfaceCreationOptions options, + DFBResult *result = 0); IDirectFBSurface *createDFBSurface(const QSize &size, QImage::Format format, - SurfaceCreationOptions options); + SurfaceCreationOptions options, + DFBResult *result = 0); IDirectFBSurface *copyDFBSurface(IDirectFBSurface *src, QImage::Format format, - SurfaceCreationOptions options); + SurfaceCreationOptions options, + DFBResult *result = 0); void flipSurface(IDirectFBSurface *surface, DFBSurfaceFlipFlags flipFlags, const QRegion ®ion, const QPoint &offset); void releaseDFBSurface(IDirectFBSurface *surface); @@ -182,7 +185,8 @@ public: static uchar *lockSurface(IDirectFBSurface *surface, uint flags, int *bpl = 0); private: IDirectFBSurface *createDFBSurface(DFBSurfaceDescription desc, - SurfaceCreationOptions options); + SurfaceCreationOptions options, + DFBResult *result); QDirectFBScreenPrivate *d_ptr; friend class SurfaceCache; }; |