void WebView::paintToCurrentGLContext() { CoordinatedGraphicsScene* scene = coordinatedGraphicsScene(); if (!scene) return; const FloatRect& viewport = m_userViewportTransform.mapRect(IntRect(IntPoint(), m_size)); scene->paintToCurrentGLContext(transformToScene().toTransformationMatrix(), m_opacity, viewport, m_page->pageExtendedBackgroundColor(), m_page->drawsBackground(), m_contentPosition); }
void WebView::paintToCurrentGLContext() { CoordinatedGraphicsScene* scene = coordinatedGraphicsScene(); if (!scene) return; // FIXME: We need to clean up this code as it is split over CoordGfx and Page. scene->setDrawsBackground(m_page->drawsBackground()); const FloatRect& viewport = m_userViewportTransform.mapRect(IntRect(IntPoint(), m_size)); scene->paintToCurrentGLContext(transformToScene().toTransformationMatrix(), m_opacity, viewport); }
AffineTransform WebView::transformFromScene() const { return transformToScene().inverse(); }
IntPoint WebView::contentsToUserViewport(const IntPoint& point) const { return transformToScene().mapPoint(point); }