Bug 564991. Part 40: ThebesLayers painted with variable opacity can still be OPAQUE_CONTENT themselves. r=bas
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 16 Jul 2010 09:08:11 +1200
changeset 47773 3d058bbc0838ed1a79fbddfe268ed9c528698cc6
parent 47772 284cab759b39fe6ca7130d4b91bcdb668001b4c2
child 47774 26c583cbcf53f59f857bafd95aac5326a39b46ce
push id14413
push userrocallahan@mozilla.com
push dateThu, 15 Jul 2010 21:12:02 +0000
treeherderautoland@e1d7fd5255fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas
bugs564991
milestone2.0b2pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 564991. Part 40: ThebesLayers painted with variable opacity can still be OPAQUE_CONTENT themselves. r=bas
gfx/layers/basic/BasicLayers.cpp
--- a/gfx/layers/basic/BasicLayers.cpp
+++ b/gfx/layers/basic/BasicLayers.cpp
@@ -314,17 +314,17 @@ BasicThebesLayer::Paint(gfxContext* aCon
       target->PopGroupToSource();
       target->Paint(aOpacity);
       target->Restore();
     }
     return;
   }
 
   PRUint32 flags = 0;
-  if (UseOpaqueSurface(this) && aOpacity == 1.0) {
+  if (UseOpaqueSurface(this)) {
     flags |= ThebesLayerBuffer::OPAQUE_CONTENT;
   }
 
   {
     nsRefPtr<gfxASurface> referenceSurface = mBuffer.GetBuffer();
     if (!referenceSurface) {
       gfxContext* defaultTarget = BasicManager()->GetDefaultTarget();
       if (defaultTarget) {