void ThreadedCompositor::scrollBy(const IntSize& delta) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->viewportController()->scrollBy(delta); }); }
void ThreadedCompositor::didChangeContentsSize(const IntSize& size) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->viewportController()->didChangeContentsSize(size); }); }
void ThreadedCompositor::scrollTo(const IntPoint& position) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->viewportController()->scrollTo(position); }); }
void ThreadedCompositor::didChangeViewportAttribute(const ViewportAttributes& attr) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->viewportController()->didChangeViewportAttribute(attr); }); }
void ThreadedCompositor::setNeedsDisplay() { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->scheduleDisplayImmediately(); }); }
void ThreadedCompositor::setNativeSurfaceHandleForCompositing(uint64_t handle) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->m_nativeSurfaceHandle = handle; protector->m_scene->setActive(true); }); }
void ThreadedCompositor::setDeviceScaleFactor(float scale) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { protector->m_deviceScaleFactor = scale; protector->scheduleDisplayImmediately(); }); }
void ThreadedCompositor::didChangeViewportSize(const IntSize& size) { RefPtr<ThreadedCompositor> protector(this); callOnCompositingThread([=] { #if PLATFORM(BCM_RPI) if (protector->m_surface) protector->m_surface->resize(size); #endif protector->viewportController()->didChangeViewportSize(size); }); }