Bug 1023677 - Mark BasicCompositor as not supporting component alpha layers. r=roc
☠☠ backed out by e97c96651f93 ☠ ☠
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 18 Jul 2014 18:48:22 +1200
changeset 194874 c5dbd56332e428e7206c096fd1da7746306db0d3
parent 194873 3c1de02bd5129af3e778b056055c4ef3aaf1178e
child 194875 3c5f96882e6cc7d837b7c921c6b9c700d2738850
push id7810
push userryanvm@gmail.com
push dateFri, 18 Jul 2014 20:08:45 +0000
treeherderfx-team@85d5040f1ad2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1023677
milestone33.0a1
Bug 1023677 - Mark BasicCompositor as not supporting component alpha layers. r=roc
gfx/layers/client/ClientLayerManager.h
--- a/gfx/layers/client/ClientLayerManager.h
+++ b/gfx/layers/client/ClientLayerManager.h
@@ -140,16 +140,19 @@ public:
 
   void* GetThebesLayerCallbackData() const
   { return mThebesLayerCallbackData; }
 
   CompositorChild* GetRemoteRenderer();
 
   CompositorChild* GetCompositorChild();
 
+  // Disable component alpha layers with the software compositor.
+  virtual bool AreComponentAlphaLayersEnabled() MOZ_OVERRIDE { return IsCompositingCheap(); }
+
   /**
    * Called for each iteration of a progressive tile update. Updates
    * aMetrics with the current scroll offset and scale being used to composite
    * the primary scrollable layer in this manager, to determine what area
    * intersects with the target composition bounds.
    * aDrawingCritical will be true if the current drawing operation is using
    * the critical displayport.
    * Returns true if the update should continue, or false if it should be