~abreu-alexandre/oxide/remove-chromedriver-build

« back to all changes in this revision

Viewing changes to qt/quick/oxide_qquick_software_frame_node.h

  • Committer: Chris Coulson
  • Date: 2016-02-24 23:07:10 UTC
  • mfrom: (1334.1.14 web-view-cleanup)
  • Revision ID: chris.coulson@canonical.com-20160224230710-q4173wx4h4e9cbe3
Move compositing, input event and windowing event handling out of WebView

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// vim:expandtab:shiftwidth=2:tabstop=2:
2
 
// Copyright (C) 2013 Canonical Ltd.
 
2
// Copyright (C) 2013-2016 Canonical Ltd.
3
3
 
4
4
// This library is free software; you can redistribute it and/or
5
5
// modify it under the terms of the GNU Lesser General Public
25
25
 
26
26
QT_BEGIN_NAMESPACE
27
27
class QImage;
 
28
class QQuickItem;
28
29
class QSGTexture;
29
30
QT_END_NAMESPACE
30
31
 
31
 
class OxideQQuickWebView;
32
 
 
33
32
namespace oxide {
34
33
 
35
34
namespace qt {
40
39
 
41
40
class SoftwareFrameNode final : public QSGSimpleTextureNode {
42
41
 public:
43
 
  SoftwareFrameNode(OxideQQuickWebView* view);
 
42
  SoftwareFrameNode(QQuickItem* item);
44
43
 
45
44
  void updateNode(QSharedPointer<oxide::qt::CompositorFrameHandle> handle);
46
45
  void setImage(const QImage& image);
47
46
 
48
47
 private:
49
 
  OxideQQuickWebView* view_;
 
48
  QQuickItem* item_;
50
49
 
51
50
  QSharedPointer<oxide::qt::CompositorFrameHandle> handle_;
52
51
  QScopedPointer<QSGTexture> texture_;