Bug 1039992 - Fix a unified build issue. r=kats

--HG--
extra : rebase_source : 4e1e09c9bcb35f70c3ee7ff833646e5f437f5a86
This commit is contained in:
Botond Ballo 2014-08-18 16:13:12 -04:00
parent c987c75938
commit 9817bf729f
4 changed files with 11 additions and 16 deletions

View File

@ -1888,6 +1888,14 @@ SetAntialiasingFlags(Layer* aLayer, DrawTarget* aTarget)
aTarget->SetPermitSubpixelAA(permitSubpixelAA);
}
nsIntRect
ToOutsideIntRect(const gfxRect &aRect)
{
gfxRect r = aRect;
r.RoundOut();
return nsIntRect(r.X(), r.Y(), r.Width(), r.Height());
}
PRLogModuleInfo* LayerManager::sLog;
} // namespace layers

View File

@ -2232,6 +2232,9 @@ void WriteSnapshotToDumpFile(LayerManager* aManager, gfx::DataSourceSurface* aSu
void WriteSnapshotToDumpFile(Compositor* aCompositor, gfx::DrawTarget* aTarget);
#endif
// A utility function used by different LayerManager implementations.
nsIntRect ToOutsideIntRect(const gfxRect &aRect);
}
}

View File

@ -110,14 +110,6 @@ BasicLayerManager::PushGroupForLayer(gfxContext* aContext, Layer* aLayer,
return result.forget();
}
static nsIntRect
ToOutsideIntRect(const gfxRect &aRect)
{
gfxRect r = aRect;
r.RoundOut();
return nsIntRect(r.X(), r.Y(), r.Width(), r.Height());
}
static nsIntRect
ToInsideIntRect(const gfxRect& aRect)
{

View File

@ -370,14 +370,6 @@ ClientLayerManager::RunOverfillCallback(const uint32_t aOverfill)
mOverfillCallbacks.Clear();
}
static nsIntRect
ToOutsideIntRect(const gfxRect &aRect)
{
gfxRect r = aRect;
r.RoundOut();
return nsIntRect(r.X(), r.Y(), r.Width(), r.Height());
}
void
ClientLayerManager::MakeSnapshotIfRequired()
{