Make View Update requests Asynchronous

This commit is contained in:
spider%netscape.com 1998-10-02 17:34:26 +00:00
Родитель 1843060b75
Коммит 99c6180557
9 изменённых файлов: 16 добавлений и 15 удалений

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

@ -934,7 +934,7 @@ NS_IMETHODIMP nsCalXMLContentSink::DidBuildModel(PRInt32 aQualityLevel)
{
nsRect bounds;
root->GetView()->GetBounds(bounds);
gXPFCToolkit->GetViewManager()->UpdateView(root->GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(root->GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
}

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

@ -254,7 +254,7 @@ nsresult nsCalCommandCanvas :: SetBounds(const nsRect &aBounds)
gXPFCToolkit->GetViewManager()->MoveViewTo(mStaticTextField, rect.x, rect.y);
gXPFCToolkit->GetViewManager()->ResizeView(mStaticTextField, rect.width, rect.height);
gXPFCToolkit->GetViewManager()->UpdateView(mStaticTextField, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(mStaticTextField, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
}
@ -267,7 +267,7 @@ nsresult nsCalCommandCanvas :: SetBounds(const nsRect &aBounds)
gXPFCToolkit->GetViewManager()->MoveViewTo(mTextField, rect.x, rect.y);
gXPFCToolkit->GetViewManager()->ResizeView(mTextField, rect.width, rect.height);
gXPFCToolkit->GetViewManager()->UpdateView(mTextField, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(mTextField, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
}

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

@ -245,6 +245,7 @@ nsEventStatus nsCalDayViewCanvas :: PaintForeground(nsIRenderingContext& aRender
{
gCalToolkit->GetNSCalendar()->getEventsByRange(evtVctr, *dStart, *dEnd);
}
nscal->getEventsByRange(evtVctr, *dStart, *dEnd);
PRUint32 vis_start_min = GetTimeContext()->GetFirstVisibleTime(nsCalPeriodFormat_kHour) * 60 + GetTimeContext()->GetFirstVisibleTime(nsCalPeriodFormat_kMinute);

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

@ -683,7 +683,7 @@ nsresult nsCalMultiDayViewCanvas::Action(nsIXPFCCommand * aCommand)
nsRect bounds;
GetView()->GetBounds(bounds);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
NS_RELEASE(tbc);

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

@ -104,7 +104,7 @@ nsresult nsCalTodoComponentCanvas :: Init()
gXPFCToolkit->GetViewManager()->MoveViewTo(mView, rect.x, rect.y);
gXPFCToolkit->GetViewManager()->ResizeView(mView, rect.width, rect.height);
gXPFCToolkit->GetViewManager()->UpdateView(mView, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(mView, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
NS_RELEASE(context);
NS_RELEASE(widget);

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

@ -934,7 +934,7 @@ nsEventStatus nsXPFCCanvas :: OnResize(nscoord aX, nscoord aY, nscoord aWidth, n
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(mView, bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(mView, bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
}
mLayout->Layout();
@ -1389,7 +1389,7 @@ nsEventStatus nsXPFCCanvas :: HandleEvent(nsGUIEvent *aEvent)
canvas->mView->GetBounds(bounds);
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(canvas->mView, bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(canvas->mView, bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
}
iterator->Next();
@ -1997,7 +1997,7 @@ nsresult nsXPFCCanvas::Action(nsIXPFCCommand * aCommand)
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
return NS_OK;
}
@ -2233,7 +2233,7 @@ void nsXPFCCanvas::Notify(nsIImageRequest *aImageRequest,
{
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
}
return ;
}

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

@ -337,7 +337,7 @@ nsEventStatus nsXPButton::OnMouseEnter(nsGUIEvent *aEvent)
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
return (nsXPItem::OnMouseEnter(aEvent));
}
@ -350,7 +350,7 @@ nsEventStatus nsXPButton::OnMouseExit(nsGUIEvent *aEvent)
GetView()->GetBounds(bounds);
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
return (nsXPItem::OnMouseExit(aEvent));
}
@ -362,7 +362,7 @@ nsEventStatus nsXPButton :: OnLeftButtonDown(nsGUIEvent *aEvent)
GetView()->GetBounds(bounds);
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
return (nsXPItem::OnLeftButtonDown(aEvent));
}
@ -374,7 +374,7 @@ nsEventStatus nsXPButton :: OnLeftButtonUp(nsGUIEvent *aEvent)
GetView()->GetBounds(bounds);
bounds.x = 0;
bounds.y = 0;
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER);
gXPFCToolkit->GetViewManager()->UpdateView(GetView(), bounds, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC);
SendCommand();

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

@ -163,7 +163,7 @@ nsresult nsXPFCButton :: CreateView()
gXPFCToolkit->GetViewManager()->MoveViewTo(mView, rect.x, rect.y);
gXPFCToolkit->GetViewManager()->ResizeView(mView, rect.width, rect.height);
gXPFCToolkit->GetViewManager()->UpdateView(mView, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(mView, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
}

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

@ -135,7 +135,7 @@ nsresult nsXPFCTextWidget :: CreateView()
gXPFCToolkit->GetViewManager()->MoveViewTo(mView, rect.x, rect.y);
gXPFCToolkit->GetViewManager()->ResizeView(mView, rect.width, rect.height);
gXPFCToolkit->GetViewManager()->UpdateView(mView, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER) ;
gXPFCToolkit->GetViewManager()->UpdateView(mView, rect, NS_VMREFRESH_AUTO_DOUBLE_BUFFER | NS_VMREFRESH_NO_SYNC) ;
NS_RELEASE(text_widget);
}