Don't require paint resampling for desktop APZ, yet. (bug 1126045 part 1, r=mattwoodrow)

--HG--
extra : rebase_source : c942d32bc9570d1ba9375e9c8289dc7aefceaea3
This commit is contained in:
David Anderson 2015-01-27 16:01:48 -08:00
parent e0f2ca34db
commit 2dd8251115

View File

@ -207,11 +207,16 @@ ClientLayerManager::BeginTransactionWithTarget(gfxContext* aTarget)
// composited (including resampling) asynchronously before we get
// a chance to repaint, so we have to ensure that it's all valid
// and not rotated.
//
// Desktop does not support async zoom yet, so we ignore this for those
// platforms.
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_WIDGET_GONK)
if (mWidget) {
if (dom::TabChild* window = mWidget->GetOwningTabChild()) {
mCompositorMightResample = window->IsAsyncPanZoomEnabled();
}
}
#endif
// If we have a non-default target, we need to let our shadow manager draw
// to it. This will happen at the end of the transaction.