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); }
void QRawWebView::paint(const QMatrix4x4& transform, float opacity, unsigned paintFlags) { WebKit::DrawingAreaProxy* drawingArea = d->m_webPageProxy->drawingArea(); if (!drawingArea) return; WebKit::LayerTreeCoordinatorProxy* coordinatorProxy = drawingArea->layerTreeCoordinatorProxy(); if (!coordinatorProxy) return; WebKit::LayerTreeRenderer* renderer = coordinatorProxy->layerTreeRenderer(); if (!renderer) return; renderer->setActive(true); renderer->syncRemoteContent(); WebCore::FloatRect rect(0, 0, d->m_size.width(), d->m_size.height()); renderer->paintToCurrentGLContext(transform, opacity, transform.mapRect(rect), paintFlags); }