[Bug 777657] Fix some opt build warnings r=cjones

This commit is contained in:
David Zbarsky 2012-07-26 21:02:05 -07:00
parent 3f38c4d3bc
commit d1eb609206
2 changed files with 3 additions and 2 deletions

View File

@ -377,7 +377,8 @@ ShaderProgramOGL::LoadMask(Layer* aMaskLayer)
(GLint)(mProfile.mTextureCount - 1));
gfxMatrix maskTransform;
bool isMask2D = aMaskLayer->GetEffectiveTransform().CanDraw2D(&maskTransform);
mozilla::DebugOnly<bool> isMask2D =
aMaskLayer->GetEffectiveTransform().CanDraw2D(&maskTransform);
NS_ASSERTION(isMask2D, "How did we end up with a 3D transform here?!");
gfxRect bounds = gfxRect(gfxPoint(), size);
bounds = maskTransform.TransformBounds(bounds);

View File

@ -317,7 +317,7 @@ ClearContainer(ContainerLayer* aContainer)
// used for small software rendering tasks, like drawWindow. That's
// currently implemented by a BasicLayerManager without a backing
// widget, and hence in non-retained mode.
static bool
inline static bool
IsTempLayerManager(LayerManager* aManager)
{
return (mozilla::layers::LAYERS_BASIC == aManager->GetBackendType() &&