~renatofilho/ubuntu-docviewer-app/no-file-hint

« back to all changes in this revision

Viewing changes to src/plugin/libreofficetoolkit-qml-plugin/renderengine.h

  • Committer: Stefano Verzegnassi
  • Date: 2015-11-22 17:28:09 UTC
  • mfrom: (202 lo-viewer)
  • mto: This revision was merged to the branch mainline in revision 207.
  • Revision ID: stefano92.100@gmail.com-20151122172809-ozk6xf1q0ef7tl2x
Merged 'reboot' - Fixed conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <QHash>
8
8
#include <QQueue>
9
9
#include <QAtomicInt>
 
10
#include <QList>
10
11
 
11
12
#include "lodocument.h"
12
13
#include "rendertask.h"
45
46
 
46
47
private:
47
48
    Q_INVOKABLE void internalRenderCallback(AbstractRenderTask* task, QImage img);
48
 
    void disposeTask(AbstractRenderTask* task);
49
49
    void doNextTask();
 
50
    void disposeLater(AbstractRenderTask* task); // Delayed deletion, must be used in pair with "doDispose".
 
51
    void doDispose();                            // Deletes marked objects (disposeLater).
50
52
 
51
53
private:
52
54
    QQueue<AbstractRenderTask*> m_queue;
53
55
    int m_activeTaskCount;
54
56
    int m_idealThreadCount;
55
 
    int m_lastPart;
 
57
 
 
58
    AbstractRenderTask* m_lastTask; // WARNING: valid only when: m_activeTaskCount > 0.
 
59
    QList<AbstractRenderTask*> m_disposedTasks;
56
60
};
57
61
 
58
62
#endif // RENDERENGINE_H