Skip to content

Move PaintListener to gfx_traits #8834

Closed

Description

@jdm

This trait is only used by gfx/ and compositing/, so it's an easy candidate to move out of the grab-bag msg/ crate.

Code: components/msg/compositor_msg.rs, components/gfx_traits/lib.rs, components/gfx/paint_task.rs

Activity

  1. added
    E-less-complex
    I-refactor
    on Dec 5, 2015
  2. cnaj commented on Dec 8, 2015

    @cnaj
    Contributor

    I've taken a quick look into it; it seems that PaintListener depends on msg::constellation_msg::PipelineId (which should stay in msg, I guess). msg::constellation_msg::ScriptMsg depends on canvas_traits::CanvasMsg, and canvas_traits in turn depends on gfx_traits, where we would have a circular dependency.

    Do I see it right that the dependency from msg crate to canvas_traits is the problematic dependency (i.e. which pulls in graphics into messages)?

    I'm still evaluating if I can work on this because it's my first contact to servo.

  3. KiChjang commented on Dec 8, 2015

    @KiChjang
    Contributor

    Does PaintListener depend upon msg::constellation_msg::ScriptMsg? If not, there shouldn't be any issue in moving PaintListener to gfx_traits.

  4. jdm commented on Dec 9, 2015

    @jdm
    MemberAuthor

    Oh, so msg depends on gfx_traits via canvas_traits? That's... unfortunate.

  5. jdm commented on Dec 9, 2015

    @jdm
    MemberAuthor

    We might be able to fix that problem by fixing #8833 first.

  6. KiChjang commented on Dec 11, 2015

    @KiChjang
    Contributor

    #8833 has been resolved.

  7. cnaj commented on Dec 11, 2015

    @cnaj
    Contributor

    Started to work on this.

  8. ghost added
    C-assigned
    on Dec 11, 2015
  9. added a commit that references this issue on Dec 11, 2015
    701aebe
  10. added 2 commits that reference this issue on Dec 11, 2015
    2c35e63
    9f0c6d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-assignedE-less-complexI-refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions