Closed Bug 826489 Opened 12 years ago Closed 12 years ago

Add preference based settings to AsyncZoomPanController

Categories

(Core :: Graphics, defect)

x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: romaxa, Assigned: romaxa)

References

Details

Attachments

(1 file, 1 obsolete file)

It seems default AZPC tunnings does not work very well on other platforms, configurations due to different issues including Thread/Process configurations, device performance et.c. I think AZPC should be tunable with gecko preferences, also it would be easy to do runtime tuning.
Depends on: 826586
Attached patch Read AZPC settings from prefs (obsolete) — Splinter Review
Assignee: nobody → romaxa
Status: NEW → ASSIGNED
Attachment #697775 - Flags: review?(bugzilla)
Comment on attachment 697775 [details] [diff] [review] Read AZPC settings from prefs Review of attachment 697775 [details] [diff] [review]: ----------------------------------------------------------------- Naming needs changes. Everything right now is stylized as constants, i.e. "MY_CONSTANT_NAME", but we should be stylizing them as static globals, i.e. "sMyPrefVariable." ::: gfx/layers/ipc/AsyncPanZoomController.h @@ +67,5 @@ > * device DPI, before we start panning the screen. This is to prevent us from > * accidentally processing taps as touch moves, and from very short/accidental > * touches moving the screen. > */ > + static float TOUCH_START_TOLERANCE; While we're here, let's move this into AsyncPanZoomController.cpp as a static global. ::: gfx/layers/ipc/Axis.cpp @@ +87,5 @@ > mVelocity(0.0f), > mAcceleration(0), > mAsyncPanZoomController(aAsyncPanZoomController) > { > + InitAxisPrefs(); 2 spaces.
Attachment #697775 - Flags: review?(bugzilla)
It seems like the trend in similar code is to label globals (whether static or not) with "g" and static _member_ variables with "s", so in this case we want to use "g" and not "s."
Attachment #697775 - Attachment is obsolete: true
Attachment #699557 - Flags: review?(bugzilla)
Comment on attachment 699557 [details] [diff] [review] Read AZPC settings from prefs Review of attachment 699557 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! Just... ::: gfx/layers/ipc/Axis.cpp @@ +87,5 @@ > mVelocity(0.0f), > mAcceleration(0), > mAsyncPanZoomController(aAsyncPanZoomController) > { > + InitAxisPrefs(); 2 spaces.
Attachment #699557 - Flags: review?(bugzilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: