зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1224403 (part 10) - Make nsScreenGonk::GetNaturalBoundsUntyped() typed. r=kats.
--HG-- extra : rebase_source : 5f07908c287af3e6e272047a72837641a4d6824e
This commit is contained in:
Родитель
9c6cbed1d0
Коммит
d5fcd40f2f
|
@ -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*
|
||||
|
|
Загрузка…
Ссылка в новой задаче