Closed Bug 1170985 Opened 9 years ago Closed 9 years ago

Suggest rename TextureSource to TextureBuilder

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: u459114, Assigned: nical)

Details

(Whiteboard: [gfx-noted])

I can't really understand what is the role of TextureSource when I first time saw this class name. After read comments and how it interact with TextureHost, I realized it's kind of a builder tool to build platform(beck-end) texture. So, I think TexureBuilder might be a suitable name for it.
Nical, can you respond/add the appropriate comments?
Assignee: nobody → nical.bugzilla
Flags: needinfo?(nical.bugzilla)
Whiteboard: [gfx-noted]
TextureSource is a texture that can be used as a source for compositing. Just like Moz2D's SourceSurface are surfaces that can be used as sources for drawing.
TextureSource "is" the texture rather than a tool to create them and "builder" is usually for the factory kind of objects so I'd prefer sticking with "TextureSource" (or "SourceTexture").

TextureClient and TextureHost are actually the two names that I am not very happy with because they sound like they are the client of a texture and the host of a texture (whereas they are in fact the client-side and host-side interface for a shared texture.

I find that SourceTexture would be a better name (would better resonate with SourceSurface), but we've had this bad habit of naming things backwards in layers (HostTexture and ClientTexture would also be better names than TextureHost and TextureClient from an english perspective).
Flags: needinfo?(nical.bugzilla)
There hasn't been activity on this bug for a month so I am closing it. Please feel free to reopen if you want to continue this discussion.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.