mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[Bug 777657] Fix some opt build warnings r=cjones
This commit is contained in:
parent
3f38c4d3bc
commit
d1eb609206
@ -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);
|
||||
|
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user