mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
parent
04b285b848
commit
75d698133f
22 changed files with 16 additions and 879 deletions
|
|
@ -300,7 +300,6 @@ public:
|
|||
|
||||
int32_t Pid() const;
|
||||
uint64_t ChildID() const;
|
||||
bool IsPreallocated() const;
|
||||
|
||||
/**
|
||||
* Used in logging, this method returns the ContentParent's name followed by
|
||||
|
|
@ -617,15 +616,12 @@ ProcessPriorityManagerImpl::NotifyProcessPriorityChanged(
|
|||
ProcessPriority aOldPriority)
|
||||
{
|
||||
ProcessPriority newPriority = aParticularManager->CurrentPriority();
|
||||
bool isPreallocated = aParticularManager->IsPreallocated();
|
||||
|
||||
if (newPriority == PROCESS_PRIORITY_BACKGROUND &&
|
||||
aOldPriority != PROCESS_PRIORITY_BACKGROUND &&
|
||||
!isPreallocated) {
|
||||
aOldPriority != PROCESS_PRIORITY_BACKGROUND) {
|
||||
mBackgroundLRUPool.Add(aParticularManager);
|
||||
} else if (newPriority != PROCESS_PRIORITY_BACKGROUND &&
|
||||
aOldPriority == PROCESS_PRIORITY_BACKGROUND &&
|
||||
!isPreallocated) {
|
||||
aOldPriority == PROCESS_PRIORITY_BACKGROUND) {
|
||||
mBackgroundLRUPool.Remove(aParticularManager);
|
||||
}
|
||||
|
||||
|
|
@ -808,12 +804,6 @@ ParticularProcessPriorityManager::Pid() const
|
|||
return mContentParent ? mContentParent->Pid() : -1;
|
||||
}
|
||||
|
||||
bool
|
||||
ParticularProcessPriorityManager::IsPreallocated() const
|
||||
{
|
||||
return mContentParent ? mContentParent->IsPreallocated() : false;
|
||||
}
|
||||
|
||||
const nsAutoCString&
|
||||
ParticularProcessPriorityManager::NameWithComma()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue