Пример #1
0
    virtual void render(const RenderState&)
    {
        QMatrix4x4 renderMatrix = matrix() ? *matrix() : QMatrix4x4();

        // Have to apply render scale manualy because it is not applied on page item.
        // http://trac.webkit.org/changeset/104450
        renderMatrix.scale(m_scale);

        // FIXME: Support non-rectangular clippings.
        layerTreeRenderer()->paintToCurrentGLContext(renderMatrix, inheritedOpacity(), clipRect());
    }
Пример #2
0
void QRawWebView::paint(const QMatrix4x4& transform, float opacity, unsigned paintFlags)
{
    WebKit::LayerTreeRenderer* renderer = layerTreeRenderer();
    if (!renderer)
        return;

    renderer->setActive(true);

    WebCore::FloatRect rect(0, 0, d->m_size.width(), d->m_size.height());

    renderer->paintToCurrentGLContext(transform, opacity, transform.mapRect(rect), paintFlags);
}
Пример #3
0
void QRawWebView::setActive(bool active)
{
    d->m_active = active;
    d->m_webPageProxy->viewStateDidChange(WebKit::WebPageProxy::ViewWindowIsActive);
    layerTreeRenderer()->setActive(active);
}
Пример #4
0
 ~PageProxyNode()
 {
     layerTreeRenderer()->purgeGLResources();
 }