summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qioswindow.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-12-25 00:21:25 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:56:03 +0100
commit847ac6008ca02a9acb1f4bd2159c6e4cfa332961 (patch)
tree3f97206542a8d5a7f348e4a56669a52d265954d6 /src/plugins/platforms/ios/qioswindow.h
parent157d690b8c190f341f1fa4cb6aff4c044456e99f (diff)
iOS: Move handling of FBOs to QIOSContext instead of QIOSWindow
The lifetime of an FBO is tied to its context, so letting each window manage its own FBO failed when the window tried to delete the FBO at destruction time without the proper context being current, or even available anymore. We solve this by moving all handling of FBOs to the context itself, which is fine as we're exposing the necessary bits from the window to allocate storage based on its layer. Change-Id: I8c7c96cf63d6b667527c816f10ac2f4ff6a05e0c Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.h')
-rw-r--r--src/plugins/platforms/ios/qioswindow.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.h b/src/plugins/platforms/ios/qioswindow.h
index 63099682f1..1f36c525ce 100644
--- a/src/plugins/platforms/ios/qioswindow.h
+++ b/src/plugins/platforms/ios/qioswindow.h
@@ -67,9 +67,9 @@ public:
void handleContentOrientationChange(Qt::ScreenOrientation orientation);
void setVisible(bool visible);
- GLuint framebufferObject(const QIOSContext &context) const;
- GLuint colorRenderbuffer(const QIOSContext &context) const;
qreal devicePixelRatio() const;
+ int effectiveWidth() const;
+ int effectiveHeight() const;
UIView *nativeView() const { return m_view; }
@@ -77,13 +77,6 @@ private:
UIView *m_view;
QRect m_requestedGeometry;
- mutable struct GLData {
- GLuint framebufferObject;
- GLuint colorRenderbuffer;
- GLuint depthRenderbuffer;
- GLint renderbufferWidth;
- GLint renderbufferHeight;
- } m_glData;
qreal m_devicePixelRatio;
};