Closed
Bug 907011
Opened 11 years ago
Closed 11 years ago
Enable Azure content for D3D9
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
Details
Attachments
(9 files, 3 obsolete files)
6.44 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
4.48 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.38 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
780 bytes,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.24 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
1.84 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
4.53 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
2.94 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
2.21 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
This should be a good stepping stone to having Azure content enabled for all windows systems.
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #792588 -
Flags: review?
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #792589 -
Flags: review?
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #792590 -
Flags: review?(bas)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #792591 -
Flags: feedback?
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #792594 -
Flags: review?
Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Comment on attachment 792590 [details] [diff] [review]
Implement CopyGlyphsToBuilder for Cairo Azure backend
Review of attachment 792590 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/ScaledFontBase.cpp
@@ +99,5 @@
> }
>
> void
> ScaledFontBase::CopyGlyphsToBuilder(const GlyphBuffer &aBuffer, PathBuilder *aBuilder)
> {
#ifdef USE_CAIRO
@@ +102,5 @@
> ScaledFontBase::CopyGlyphsToBuilder(const GlyphBuffer &aBuffer, PathBuilder *aBuilder)
> {
> + PathBuilderCairo* builder = static_cast<PathBuilderCairo*>(aBuilder);
> +
> + // Manually build the path for the PathBuilder.
nit: This comment does not apply.
Attachment #792590 -
Flags: review?(bas) → review+
Comment 8•11 years ago
|
||
Comment on attachment 792589 [details] [diff] [review]
Implement pattern matrices for the Cairo Azure backend
Review of attachment 792589 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/DrawTargetCairo.cpp
@@ +341,5 @@
> + GfxMatrixToCairoMatrix(*matrix, mat);
> + cairo_matrix_invert(&mat);
> + cairo_pattern_set_matrix(pat, &mat);
> + }
> +
nit: Remove extra whitespace :)
Attachment #792589 -
Flags: review? → review+
Comment 9•11 years ago
|
||
Comment on attachment 792588 [details] [diff] [review]
Implement antialias mode for the Cairo Azure backend
Review of attachment 792588 [details] [diff] [review]:
-----------------------------------------------------------------
nit: Lots of empty line whitespace in this patch, please fix :)
Attachment #792588 -
Flags: review? → review+
Comment 10•11 years ago
|
||
Comment on attachment 792591 [details] [diff] [review]
Add PopGroupAndPaint to workaround precision issue
Review of attachment 792591 [details] [diff] [review]:
-----------------------------------------------------------------
So I now fully understand the cause of this bug and it's deep within pixman. But we'll still want this patch because it will make us hit more fastpaths.
I agree with the basic idea of what you're doing, but I'm tempted to say we should try and see if we can cast a 'wider net' though considering how common the PopGroupToSource->Paint idiom is. What we can do is simply check if the surfTransform is the inverse of the current context Matrix (I could even be convinced to simply track this with a bool). (Which will practically always be true) And then we can simply do the trick you're already doing. This should actually make use able to hit a couple of more fastpaths in other backends by using Moz2D's CopySurface, what do you think?
Attachment #792591 -
Flags: feedback? → feedback+
Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a2abafe9a213
https://hg.mozilla.org/integration/mozilla-inbound/rev/1f43ebeb69e2
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b6062c70f2a
Whiteboard: [leave open]
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #793275 -
Flags: review?(bas)
Assignee | ||
Comment 13•11 years ago
|
||
Attachment #792601 -
Attachment is obsolete: true
Attachment #793279 -
Flags: review?(bas)
Assignee | ||
Updated•11 years ago
|
Attachment #792594 -
Flags: review? → review?(bas)
Assignee | ||
Comment 14•11 years ago
|
||
Attachment #793283 -
Flags: review?(bas)
Assignee | ||
Comment 15•11 years ago
|
||
What do you think of this approach?
We could do the equivalent changes just in gfxWindowsNativeDrawing instead, but this seemed easy and useful.
Try run is fully green with the patches in this bug.
https://tbpl.mozilla.org/?tree=Try&rev=aba9e283679a
Just need reviews, and the revised PopGroupAndPaint patch and we're good to go!
Attachment #793386 -
Flags: review?(bas)
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
Comment on attachment 793275 [details] [diff] [review]
Don't copy to the snapshot when destroying
Review of attachment 793275 [details] [diff] [review]:
-----------------------------------------------------------------
I hope this won't break anything else but from looking at the code I think it's good.
Attachment #793275 -
Flags: review?(bas) → review+
Updated•11 years ago
|
Attachment #793279 -
Flags: review?(bas) → review+
Comment 18•11 years ago
|
||
Comment on attachment 793386 [details] [diff] [review]
Fix windows native drawing
Review of attachment 793386 [details] [diff] [review]:
-----------------------------------------------------------------
We're keeping our usage of the Thebes API fairly high here. I believe we should replace this by doing something like a NATIVE_SURFACE_HDC that DrawTargetCairo handles internally, and optionally other DrawTargets may expose as well and give us fast Native drawing. How do you feel about that?
Updated•11 years ago
|
Attachment #793283 -
Flags: review?(bas) → review+
Assignee | ||
Comment 19•11 years ago
|
||
Patch by Bas, r=me.
Had to rename mat to oldMat to fix a compile failure, and changed the if condition to be !state.patternTransformChanged for it to take effect.
https://tbpl.mozilla.org/?tree=Try&rev=e1a5cf903ec0
Attachment #792591 -
Attachment is obsolete: true
Attachment #794327 -
Flags: review+
Comment 20•11 years ago
|
||
Comment on attachment 793386 [details] [diff] [review]
Fix windows native drawing
Review of attachment 793386 [details] [diff] [review]:
-----------------------------------------------------------------
I -really- don't like this patch, but if it does the job for now, let's do it.
Attachment #793386 -
Flags: review?(bas) → review+
Assignee | ||
Comment 21•11 years ago
|
||
Attachment #792594 -
Attachment is obsolete: true
Attachment #792594 -
Flags: review?(bas)
Attachment #794434 -
Flags: review?(bas)
Updated•11 years ago
|
Attachment #794434 -
Flags: review?(bas) → review+
Assignee | ||
Comment 22•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5355f7065af4
https://hg.mozilla.org/integration/mozilla-inbound/rev/cde5687940d8
https://hg.mozilla.org/integration/mozilla-inbound/rev/a7ddcc79c887
https://hg.mozilla.org/integration/mozilla-inbound/rev/eef7f16f13c7
https://hg.mozilla.org/integration/mozilla-inbound/rev/588d4d76f777
https://hg.mozilla.org/integration/mozilla-inbound/rev/a2d834dd81f2
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → matt.woodrow
Whiteboard: [leave open]
Comment 23•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5355f7065af4
https://hg.mozilla.org/mozilla-central/rev/cde5687940d8
https://hg.mozilla.org/mozilla-central/rev/a7ddcc79c887
https://hg.mozilla.org/mozilla-central/rev/eef7f16f13c7
https://hg.mozilla.org/mozilla-central/rev/588d4d76f777
https://hg.mozilla.org/mozilla-central/rev/a2d834dd81f2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•