Closed Bug 1230413 Opened 9 years ago Closed 9 years ago

More gfxContext-to-DrawTarget conversion clean-ups

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

Details

Attachments

(5 files, 1 obsolete file)

Some more clean-ups.
Instead of an nsRenderingContext.
Attachment #8695657 - Flags: review?(matt.woodrow)
Attachment #8695662 - Attachment is obsolete: true
Attachment #8695662 - Flags: review?(jfkthame)
Instead of an nsRenderingContext.
Attachment #8695733 - Flags: review?(matt.woodrow)
Comment on attachment 8695658 [details] [diff] [review]
(part 2) - Change CallbackData::mContext to a DrawTarget

Review of attachment 8695658 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/thebes/gfxGraphiteShaper.h
@@ +45,5 @@
>  
>      struct CallbackData {
> +        gfxFont* mFont;
> +        gfxGraphiteShaper* mShaper;
> +        mozilla::gfx::DrawTarget* mDrawTarget;

For bonus points, you can remove the mShaper field from this struct while you're in the area; AFAICS it's set by the gfxGraphiteShaper constructor, but then never actually used.
Attachment #8695658 - Flags: review?(jfkthame) → review+
Comment on attachment 8695663 [details] [diff] [review]
(part 3) - Remove unused gfxContext argument from SetSpaceGlyphIfSimple()

Review of attachment 8695663 [details] [diff] [review]:
-----------------------------------------------------------------

Duh!
Attachment #8695663 - Flags: review?(jfkthame) → review+
Attachment #8695657 - Flags: review?(matt.woodrow) → review+
Attachment #8695729 - Flags: review?(matt.woodrow) → review+
Attachment #8695733 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b73d6323bf42587b42fcf7f2de928397940c2053
Bug 1230413 (part 1) - Pass a DrawTarget to several PaintFocus functions(). r=mattwoodrow.

https://hg.mozilla.org/integration/mozilla-inbound/rev/a47d95507944043c839f2ee6bfedf7c515afbe5f
Bug 1230413 (part 2) - Change CallbackData::mContext to a DrawTarget. r=jfkthame.

https://hg.mozilla.org/integration/mozilla-inbound/rev/e7f8a69c7bf3f3ff2ff61cf24a4eba3585e2669c
Bug 1230413 (part 3) - Remove unused gfxContext argument from SetSpaceGlyphIfSimple(). r=jfkthame.

https://hg.mozilla.org/integration/mozilla-inbound/rev/e1cf548298482c22ce9b51002a84e998bcff61a4
Bug 1230413 (part 4) - Remove unused nsRenderingContext argument from ForceBreak() and OptionallyBreak(). r=mattwoodrow.

https://hg.mozilla.org/integration/mozilla-inbound/rev/503dbfc06901e4117b4054194dfc82b778fc56b4
Bug 1230413 (part 5) - Pass a DrawTarget to Draw{Dashed,SolidBorder}Segment(). r=mattwoodrow.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: