~ubuntu-branches/ubuntu/wily/kwin/wily-proposed

« back to all changes in this revision

Viewing changes to scene_opengl.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-08-10 23:16:37 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20150810231637-5zb2tstjkez93hml
Tags: 4:5.3.95-0ubuntu1
new upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
370
370
 *
371
371
 * @author Martin Gräßlin <mgraesslin@kde.org>
372
372
 **/
373
 
class OpenGLBackend
 
373
class KWIN_EXPORT OpenGLBackend
374
374
{
375
375
public:
376
376
    OpenGLBackend();
400
400
     * @param damagedRegion The damaged region that should be posted
401
401
     **/
402
402
    virtual void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion) = 0;
 
403
    virtual void endRenderingFrameForScreen(int screenId, const QRegion &damage, const QRegion &damagedRegion);
403
404
    virtual bool makeCurrent() = 0;
404
405
    virtual void doneCurrent() = 0;
405
406
    virtual bool usesOverlayWindow() const = 0;
406
407
    /**
 
408
     * Whether the rendering needs to be split per screen.
 
409
     * Default implementation returns @c false.
 
410
     **/
 
411
    virtual bool perScreenRendering() const;
 
412
    virtual QRegion prepareRenderingForScreen(int screenId);
 
413
    /**
407
414
     * @brief Compositor is going into idle mode, flushes any pending paints.
408
415
     **/
409
416
    void idle();