Advertisement
Guest User

Untitled

a guest
Oct 8th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.42 KB | None | 0 0
  1. diff --git a/Source/WebCore/rendering/RenderLayerBacking.cpp b/Source/WebCore/rendering/RenderLayerBacking.cpp
  2. index d7143a5..cb32412 100644
  3. --- a/Source/WebCore/rendering/RenderLayerBacking.cpp
  4. +++ b/Source/WebCore/rendering/RenderLayerBacking.cpp
  5. @@ -2281,7 +2281,11 @@ void RenderLayerBacking::notifyFlushRequired(const GraphicsLayer* layer)
  6.  {
  7.      if (renderer().documentBeingDestroyed())
  8.          return;
  9. -    compositor().scheduleLayerFlush(layer->canThrottleLayerFlush());
  10. +
  11. +    if(compositor().enclosingCompositorFlushingLayers() == nullptr)
  12. +    {
  13. +        compositor().scheduleLayerFlush(layer->canThrottleLayerFlush());
  14. +    }
  15.  }
  16.  
  17.  void RenderLayerBacking::notifyFlushBeforeDisplayRefresh(const GraphicsLayer* layer)
  18. diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp
  19. index e10315f..23b0262 100644
  20. --- a/Source/WebCore/rendering/RenderLayerCompositor.cpp
  21. +++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp
  22. @@ -341,7 +341,10 @@ void RenderLayerCompositor::customPositionForVisibleRectComputation(const Graphi
  23.  
  24.  void RenderLayerCompositor::notifyFlushRequired(const GraphicsLayer* layer)
  25.  {
  26. -    scheduleLayerFlush(layer->canThrottleLayerFlush());
  27. +    if(enclosingCompositorFlushingLayers() == nullptr)
  28. +    {
  29. +        scheduleLayerFlush(layer->canThrottleLayerFlush());
  30. +    }
  31.  }
  32.  
  33.  void RenderLayerCompositor::scheduleLayerFlushNow()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement