void CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly() { ASSERT(m_coordinator->isFlushingLayerChanges()); // When we have a transform animation, we need to update visible rect every frame to adjust the visible rect of a backing store. bool hasActiveTransformAnimation = selfOrAncestorHasActiveTransformAnimation(); if (hasActiveTransformAnimation) m_movingVisibleRect = true; // Sets the values. computePixelAlignment(m_adjustedPosition, m_adjustedSize, m_adjustedAnchorPoint, m_pixelAlignmentOffset); syncImageBacking(); syncLayerState(); syncAnimations(); computeTransformedVisibleRect(); syncChildren(); #if ENABLE(CSS_FILTERS) syncFilters(); #endif #if USE(GRAPHICS_SURFACE) syncCanvas(); #endif // Only unset m_movingVisibleRect after we have updated the visible rect after the animation stopped. if (!hasActiveTransformAnimation) m_movingVisibleRect = false; }
void WebGraphicsLayer::syncCompositingStateForThisLayerOnly() { // The remote image might have been released by purgeBackingStores. ensureImageBackingStore(); computeTransformedVisibleRect(); syncChildren(); syncLayerState(); #if ENABLE(CSS_FILTERS) syncFilters(); #endif updateContentBuffers(); }