mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
e0f2ca34db
commit
2dd8251115
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user