Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qxcbbackingstore.cpp File Reference

(a07cb53c2311de255fe6cd677ae487c385a71942)

#include "qxcbbackingstore.h"
#include "qxcbconnection.h"
#include "qxcbscreen.h"
#include "qxcbwindow.h"
#include <xcb/shm.h>
#include <xcb/xcb_image.h>
#include <xcb/render.h>
#include <xcb/xcb_renderutil.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/mman.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <qdebug.h>
#include <qpainter.h>
#include <qscreen.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qpa/qplatformgraphicsbuffer.h>
#include <private/qimage_p.h>
#include <qendian.h>
#include <algorithm>
+ Include dependency graph for qxcbbackingstore.cpp:

Go to the source code of this file.

Classes

class  QXcbBackingStoreImage
 
class  QXcbGraphicsBuffer
 

Functions

static size_t imageDataSize (const xcb_image_t *image)
 
void qt_scrollRectInImage (QImage &img, const QRect &rect, const QPoint &offset)
 
static void copy_unswapped (char *dst, int dstBytesPerLine, const QImage &img, const QRect &rect)
 
template<class Pixel >
static void copy_swapped (char *dst, const int dstStride, const QImage &img, const QRect &rect)
 
static QImage native_sub_image (QByteArray *buffer, const int dstStride, const QImage &src, const QRect &rect, bool swap)
 
static quint32 round_up_scanline (quint32 base, quint32 pad)
 

Function Documentation

◆ copy_swapped()

template<class Pixel >
static void copy_swapped ( char * dst,
const int dstStride,
const QImage & img,
const QRect & rect )
inlinestatic

Definition at line 520 of file qxcbbackingstore.cpp.

References i, Pixel, and rect.

◆ copy_unswapped()

static void copy_unswapped ( char * dst,
int dstBytesPerLine,
const QImage & img,
const QRect & rect )
inlinestatic

Definition at line 504 of file qxcbbackingstore.cpp.

References leftOffset, and rect.

Referenced by native_sub_image().

+ Here is the caller graph for this function:

◆ imageDataSize()

static size_t imageDataSize ( const xcb_image_t * image)
inlinestatic

Definition at line 147 of file qxcbbackingstore.cpp.

Referenced by QQuick3DRenderStats::lastCompletedGpuTimeChanged(), readMask(), and QXcbBackingStoreImage::resize().

+ Here is the caller graph for this function:

◆ native_sub_image()

static QImage native_sub_image ( QByteArray * buffer,
const int dstStride,
const QImage & src,
const QRect & rect,
bool swap )
static

Definition at line 540 of file qxcbbackingstore.cpp.

References copy_unswapped(), rect, and swap().

+ Here is the call graph for this function:

◆ qt_scrollRectInImage()

void qt_scrollRectInImage ( QImage & img,
const QRect & rect,
const QPoint & offset )
extern

Definition at line 300 of file qbackingstore.cpp.

Referenced by QXcbBackingStoreImage::scroll().

+ Here is the caller graph for this function:

◆ round_up_scanline()

static quint32 round_up_scanline ( quint32 base,
quint32 pad )
inlinestatic

Definition at line 563 of file qxcbbackingstore.cpp.

References base.