Bug 1224403 (part 10) - Make nsScreenGonk::GetNaturalBoundsUntyped() typed. r=kats.

--HG--
extra : rebase_source : 5f07908c287af3e6e272047a72837641a4d6824e
This commit is contained in:
Nicholas Nethercote 2015-11-12 05:44:43 -08:00
Родитель 9c6cbed1d0
Коммит d5fcd40f2f
6 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -976,7 +976,7 @@ LayerManagerComposite::RenderToPresentationSurface()
}
GLContext* gl = compositor->gl();
GLContextEGL* egl = GLContextEGL::Cast(gl);
const IntSize windowSize = mirrorScreen->GetNaturalBoundsUntyped().Size();
const IntSize windowSize = mirrorScreen->GetNaturalBounds().Size().ToUnknownSize();
#endif
if ((windowSize.width <= 0) || (windowSize.height <= 0)) {

Просмотреть файл

@ -769,7 +769,7 @@ HwcComposer2D::Render(nsIWidget* aWidget)
mList->hwLayers[mList->numHwLayers - 1].acquireFenceFd = dispSurface->GetPrevDispAcquireFd();
} else {
// Update screen rect to handle a case that TryRenderWithHwc() is not called.
mScreenRect = screen->GetNaturalBoundsUntyped();
mScreenRect = screen->GetNaturalBounds().ToUnknownRect();
mList->flags = HWC_GEOMETRY_CHANGED;
mList->numHwLayers = 2;
@ -891,7 +891,7 @@ HwcComposer2D::TryRenderWithHwc(Layer* aRoot,
// reallocated. We may want to avoid this if possible
mVisibleRegions.clear();
mScreenRect = screen->GetNaturalBoundsUntyped();
mScreenRect = screen->GetNaturalBounds().ToUnknownRect();
MOZ_ASSERT(mHwcLayerMap.IsEmpty());
if (!PrepareLayerList(aRoot,
mScreenRect,

Просмотреть файл

@ -580,7 +580,7 @@ GeckoInputReaderPolicy::setDisplayInfo()
uint32_t rotation = nsIScreen::ROTATION_0_DEG;
DebugOnly<nsresult> rv = screen->GetRotation(&rotation);
MOZ_ASSERT(NS_SUCCEEDED(rv));
nsIntRect screenBounds = screen->GetNaturalBoundsUntyped();
LayoutDeviceIntRect screenBounds = screen->GetNaturalBounds();
DisplayViewport viewport;
viewport.displayId = 0;

Просмотреть файл

@ -289,10 +289,10 @@ nsScreenGonk::SetRotation(uint32_t aRotation)
return NS_OK;
}
nsIntRect
nsScreenGonk::GetNaturalBoundsUntyped()
LayoutDeviceIntRect
nsScreenGonk::GetNaturalBounds()
{
return mNaturalBounds;
return LayoutDeviceIntRect::FromUnknownRect(mNaturalBounds);
}
uint32_t

Просмотреть файл

@ -76,7 +76,7 @@ public:
float GetDpi();
int32_t GetSurfaceFormat();
ANativeWindow* GetNativeWindow();
nsIntRect GetNaturalBoundsUntyped();
mozilla::LayoutDeviceIntRect GetNaturalBounds();
uint32_t EffectiveScreenRotation();
ScreenConfiguration GetConfiguration();
bool IsPrimaryScreen();

Просмотреть файл

@ -854,7 +854,7 @@ nsWindow::GetGLFrameBufferFormat()
nsIntRect
nsWindow::GetNaturalBoundsUntyped()
{
return mScreen->GetNaturalBoundsUntyped();
return mScreen->GetNaturalBounds().ToUnknownRect();
}
nsScreenGonk*