Closed Bug 575962 Opened 16 years ago Closed 16 years ago

top window accelerated ENV variable

Categories

(Core :: Widget, defect)

Other Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: romaxa, Assigned: romaxa)

Details

Attachments

(1 file, 3 obsolete files)

would be nice to have some environment variable which allow us to enable or disable accelerated mode for top-level XUL window. something like MOZ_ACCELERATED="0"/"1" if it is exported then it will override value in top level Xul window It is a bit annoying to modify browser.xul every time and cleanup *.mfasl files... What do you think about it?
Attached patch MOZ_ACCELERATED (obsolete) — Splinter Review
It would be nice to have way just take upstream build and export this var... instead of unpacking/packing chrome.jar files, cleaning up *.mfasl files e.t.c
Attachment #455127 - Flags: review?(bas.schouten)
Comment on attachment 455127 [details] [diff] [review] MOZ_ACCELERATED >+ const char *acceleratedEnv = PR_GetEnv("MOZ_ACCELERATED"); we generally hide this stuff behind a static....
Attachment #455127 - Flags: review?(bas.schouten) → review-
Attached patch Make env var static (obsolete) — Splinter Review
Attachment #455151 - Flags: review?(neil)
Attachment #455127 - Attachment is obsolete: true
Comment on attachment 455151 [details] [diff] [review] Make env var static You'll want to get a different neil to review this.
Attachment #455151 - Flags: review?(neil) → review?
Comment on attachment 455151 [details] [diff] [review] Make env var static > rv = windowElement->HasAttribute(NS_LITERAL_STRING("accelerated"), &isAccelerated); (We could move this into the else block, since we don't need to check the attribute if the environment variable exists.) >+ isAccelerated = *acceleratedEnv == '0' ? PR_FALSE : PR_TRUE; Just use *acceleratedEnv != '0';
Attachment #455151 - Flags: review? → review?(roc)
Assignee: nobody → romaxa
Attachment #455151 - Attachment is obsolete: true
Attachment #455431 - Flags: review?(roc)
Attachment #455151 - Flags: review?(roc)
+ isAccelerated = *acceleratedEnv == '0' ? PR_FALSE : PR_TRUE; isAccelerated = *acceleratedEnv != '0'
Attached patch Updated commentSplinter Review
Attachment #455431 - Attachment is obsolete: true
Attachment #455443 - Flags: review?(roc)
Attachment #455431 - Flags: review?(roc)
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: