-
Notifications
You must be signed in to change notification settings - Fork 294
Add comments, rename things, remove unused code #3143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good! I have a few minor concerns, please feel free to r=me anyhow.
Reviewed 7 of 7 files at r1.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @bholley)
webrender/src/internal_types.rs, line 48 at r1 (raw file):
} /// Represents a texture that serves as input to a shader.
I think the meaning of this enum
is more about where the texture comes from, rather than where it goes to (i.e. the shader).
webrender/src/render_task.rs, line 190 at r1 (raw file):
/// /// The second member specifies the width and height of the task /// output, and the first member is initially left blank. During the build
"blank" -> None
?
webrender/src/tiling.rs, line 342 at r1 (raw file):
pub struct GlyphJob; /// Represents a regular color output surface, RGBA32.
In WR, the convention is to specify bits per channel here, i.e. RGBA8
webrender/src/tiling.rs, line 342 at r1 (raw file):
pub struct GlyphJob; /// Represents a regular color output surface, RGBA32.
I'd say, rather, that this structure contains all the work (in the form of instance arrays) needed to fill a color surface
…an a TextureSource.
This is clearer, since this relates to the Texture Cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @kvark)
webrender/src/internal_types.rs, line 48 at r1 (raw file):
Previously, kvark (Dzmitry Malyshau) wrote…
I think the meaning of this
enum
is more about where the texture comes from, rather than where it goes to (i.e. the shader).
Done.
webrender/src/render_task.rs, line 190 at r1 (raw file):
Previously, kvark (Dzmitry Malyshau) wrote…
"blank" ->
None
?
Done.
webrender/src/tiling.rs, line 342 at r1 (raw file):
Previously, kvark (Dzmitry Malyshau) wrote…
In WR, the convention is to specify bits per channel here, i.e. RGBA8
I was cribbing from the existing comment in RenderTargetKind, I'll fix that one up as well.
webrender/src/tiling.rs, line 342 at r1 (raw file):
Previously, kvark (Dzmitry Malyshau) wrote…
I'd say, rather, that this structure contains all the work (in the form of instance arrays) needed to fill a color surface
Got it. I assume I should fix up AlphaRenderTarget as well.
Added more commits. r? @kvark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 28 of 28 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved
@bors-servo r+ |
📌 Commit f29f465 has been approved by |
Add comments, rename things, remove unused code CC @nical @kvark @gw3583 r? whoever wants to take it. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/3143) <!-- Reviewable:end -->
☀️ Test successful - status-appveyor, status-taskcluster |
CC @nical @kvark @gw3583
r? whoever wants to take it.
This change is