-
Notifications
You must be signed in to change notification settings - Fork 276
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
Allow to not depend on offscreen_gl_context #1009
Conversation
A priority became higher because of Bug 1349967[1] |
I would prefer it if instead of adding conditional compilation all over the code we would just contain that inside of WebGLContextWrapper (and have a WebGLContextWrapper with mostly empty functions if the webrender feature isn't enabled. |
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.
PR is OK. I do agree with @nical that we should explore the option to cut out less stuff by providing dummies/stubs.
webrender/src/record.rs
Outdated
@@ -77,6 +78,19 @@ pub fn should_record_msg(msg: &ApiMsg) -> bool { | |||
&ApiMsg::TickScrollingBounce | | |||
&ApiMsg::WebGLCommand(..) => |
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.
should just apply the cfg
to this item only
Updated a patch as to reduce cfg. |
@kvark, can you review the pull request again? |
I guess another alternative for this would be to depend on This would make it just use the |
Oh interesting, @emilio ! |
It was my first proposal, but now I prefer current pull request's approach since it could make crate dependency of gecko simpler. The current approach could remove several crates from /third_party/rust of gecko. |
I like the idea of avoiding unnecessary dependencies in gecko's repository. |
Sounds good, then this looks good to me, does anybody else have any concern with the current approach? If not, feel free to r=me. |
Sounds like a consensus to me :) |
📌 Commit 78af0cd has been approved by |
Allow to not depend on offscreen_gl_context It is created based on #773. cc @emilio, @kvark, @glennw <!-- 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/1009) <!-- Reviewable:end -->
☀️ Test successful - status-travis |
This is no longer needed after servo/webrender#1009 MozReview-Commit-ID: GEHGRK0TGXY
This is no longer needed after servo/webrender#1009 MozReview-Commit-ID: GEHGRK0TGXY
This is no longer needed after servo/webrender#1009 MozReview-Commit-ID: GEHGRK0TGXY UltraBlame original commit: a5222d76fff2c8a7bda16baca390b795424e2fd2
This is no longer needed after servo/webrender#1009 MozReview-Commit-ID: GEHGRK0TGXY UltraBlame original commit: a5222d76fff2c8a7bda16baca390b795424e2fd2
This is no longer needed after servo/webrender#1009 MozReview-Commit-ID: GEHGRK0TGXY UltraBlame original commit: a5222d76fff2c8a7bda16baca390b795424e2fd2
It is created based on #773.
cc @emilio, @kvark, @glennw
This change is