Closed
Bug 826489
Opened 12 years ago
Closed 12 years ago
Add preference based settings to AsyncZoomPanController
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: romaxa, Assigned: romaxa)
References
Details
Attachments
(1 file, 1 obsolete file)
23.26 KB,
patch
|
drs
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
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)
Comment 3•12 years ago
|
||
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."
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #697775 -
Attachment is obsolete: true
Attachment #699557 -
Flags: review?(bugzilla)
Comment 5•12 years ago
|
||
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+
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/220561604032
ups, machinary forgot to fix last comment :(
https://hg.mozilla.org/integration/mozilla-inbound/rev/453f1b333864
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/220561604032
https://hg.mozilla.org/mozilla-central/rev/453f1b333864
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.
Description
•