Closed
Bug 840693
Opened 12 years ago
Closed 12 years ago
Change FrameMetrics to use gfx:: types instead of gfxSize and nsIntRect, etc.
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: ajones, Assigned: ajones)
References
Details
Attachments
(2 files, 7 obsolete files)
|
9.81 KB,
patch
|
Details | Diff | Splinter Review | |
|
84.98 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
FrameMetrics and AsyncPanZoomController use a mixture of double and float based types. As floating point precision is not considered to be a bottleneck in scrolling it seems more useful to have extra precision.
Updated•12 years ago
|
Component: General → Graphics: Layers
Product: Boot2Gecko → Core
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Summary: Change FrameMetrics to use gfxPoint, gfxSize, gfxRect instead of gfx:: types → Change FrameMetrics to use gfx:: types instead of gfxSize and nsIntRect, etc.
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #713124 -
Attachment is obsolete: true
Attachment #715014 -
Flags: review?(bas)
Comment 3•12 years ago
|
||
Try run for f02d9469d382 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=f02d9469d382
Results (out of 274 total builds):
success: 259
warnings: 13
failure: 2
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ajones@mozilla.com-f02d9469d382
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #715014 -
Attachment is obsolete: true
Attachment #715014 -
Flags: review?(bas)
Attachment #715281 -
Flags: review?
| Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Try run for 9e071648d631 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=9e071648d631
Results (out of 98 total builds):
success: 96
warnings: 2
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ajones@mozilla.com-9e071648d631
Comment 7•12 years ago
|
||
Comment on attachment 715281 [details] [diff] [review]
Part 1: Add ZoomScale and gfxConversion
Review of attachment 715281 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/ZoomScale.h
@@ +16,5 @@
> + public BaseSize<Float, ZoomScale> {
> + typedef BaseSize<Float, ZoomScale> Super;
> +
> + ZoomScale() : Super(1, 1) {}
> + ZoomScale(Float aWidth, Float aHeight) : Super(aWidth, aHeight) {}
aX and aY seem better to me here, probably making BasePoint a better baseclass :s. All in all I'm not sure how I feel about this class but it can't hurt I guess.
::: gfx/thebes/gfxConversion.h
@@ +1,4 @@
> +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
> + * This Source Code Form is subject to the terms of the Mozilla Public
> + * License, v. 2.0. If a copy of the MPL was not distributed with this
> + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
gfx2DGlue.h :)
Attachment #715281 -
Flags: review? → review+
| Assignee | ||
Comment 8•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #715286 -
Attachment is obsolete: true
| Assignee | ||
Comment 9•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #715281 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•12 years ago
|
||
| Assignee | ||
Comment 11•12 years ago
|
||
| Assignee | ||
Comment 12•12 years ago
|
||
Comment 13•12 years ago
|
||
Try run for d3ee2270443a is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=d3ee2270443a
Results (out of 97 total builds):
success: 96
warnings: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ajones@mozilla.com-d3ee2270443a
| Assignee | ||
Updated•12 years ago
|
Attachment #715826 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #715823 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #717689 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Attachment #717710 -
Flags: review?(jones.chris.g)
Updated•12 years ago
|
Attachment #717710 -
Flags: review?(jones.chris.g) → review+
| Assignee | ||
Comment 14•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c1f4eff03e82
https://hg.mozilla.org/integration/mozilla-inbound/rev/cacb9f3ee44d
Flags: in-testsuite-
Comment 15•12 years ago
|
||
This caused frequent test failures: Android robocop testLoad -- bug 838563. Can we back out?
Depends on: 838563
Comment 16•12 years ago
|
||
Comment 17•12 years ago
|
||
Was looking through this patch, this looked suspicious:
3.44 - gfxPoint GetScrollOffsetInLayerPixels() const
3.45 + gfx::Point GetScrollOffsetInLayerPixels() const
3.46 {
3.47 - return gfxPoint(
3.48 - static_cast<gfx::Float>(
3.49 - mScrollOffset.x * LayersPixelsPerCSSPixel().width),
3.50 - static_cast<gfx::Float>(
3.51 - mScrollOffset.y * LayersPixelsPerCSSPixel().height));
3.52 + return mScrollOffset * LayersPixelsPerCSSPixel();
3.53 }
I notice there used to be a float cast after the multiplication, and looking it up, gfxPoint uses gfxFloat, which is actually a double (I didn't know this...)
So is the performance increase because of the precision drop? And would that explain the intermittent failure too?
| Assignee | ||
Comment 18•12 years ago
|
||
The purpose of the patch is to improve consistency more than to improve performance. Any related performance changes could affect fragile tests. I haven't looked into it yet.
Comment 19•12 years ago
|
||
Try run for 5f8927f5a205 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=5f8927f5a205
Results (out of 353 total builds):
success: 319
warnings: 34
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ajones@mozilla.com-5f8927f5a205
Comment 20•12 years ago
|
||
Try run for 24e0f68f18a9 is complete.
Detailed breakdown of the results available here:
https://tbpl.mozilla.org/?tree=Try&rev=24e0f68f18a9
Results (out of 1 total builds):
success: 1
Builds (or logs if builds failed) available at:
http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/ajones@mozilla.com-24e0f68f18a9
| Assignee | ||
Comment 21•12 years ago
|
||
Has bitrotted and is probably not worth doing at this stage.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•