Bug 1027794 - Don't copy the visible region when rendering. r=bjacob
authorBenoit Girard <b56girard@gmail.com>
Thu, 19 Jun 2014 16:14:46 -0400
changeset 203425 5ffc3f1b9db97c9b0ef32ec54d93dee489cdeacd
parent 203424 1e86f2c32f56c53670122c7f64f5e161b5efb8b4
child 203426 bdac18bd6c7441154559413600d80a340d026bda
child 203490 157bfd025602803937ceeed1dcadc19244bbbe14
push id6561
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 21:23:20 +0000
treeherdermozilla-aurora@428d4d3c8588 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs1027794
milestone33.0a1
Bug 1027794 - Don't copy the visible region when rendering. r=bjacob
gfx/layers/composite/ThebesLayerComposite.cpp
--- a/gfx/layers/composite/ThebesLayerComposite.cpp
+++ b/gfx/layers/composite/ThebesLayerComposite.cpp
@@ -128,17 +128,17 @@ ThebesLayerComposite::RenderLayer(const 
     }
   }
 #endif
 
   EffectChain effectChain(this);
   LayerManagerComposite::AutoAddMaskEffect autoMaskEffect(mMaskLayer, effectChain);
   AddBlendModeEffect(effectChain);
 
-  nsIntRegion visibleRegion = GetEffectiveVisibleRegion();
+  const nsIntRegion& visibleRegion = GetEffectiveVisibleRegion();
 
   TiledLayerProperties tiledLayerProps;
   if (mRequiresTiledProperties) {
     tiledLayerProps.mVisibleRegion = visibleRegion;
     tiledLayerProps.mEffectiveResolution = GetEffectiveResolution();
     tiledLayerProps.mValidRegion = mValidRegion;
   }