mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Report all messages processed by the webgl thread.
This commit is contained in:
parent
f3f20e6c35
commit
25a61f3783
3 changed files with 36 additions and 6 deletions
|
@ -117,6 +117,7 @@ impl<VR: WebVRRenderHandler + 'static> WebGLThread<VR> {
|
|||
/// Handles a generic WebGLMsg message
|
||||
#[inline]
|
||||
fn handle_msg(&mut self, msg: WebGLMsg, webgl_chan: &WebGLChan) -> bool {
|
||||
trace!("processing {:?}", msg);
|
||||
match msg {
|
||||
WebGLMsg::CreateContext(version, size, attributes, result_sender) => {
|
||||
let result = self.create_webgl_context(version, size, attributes);
|
||||
|
@ -1104,7 +1105,7 @@ impl WebGLImpl {
|
|||
alpha_treatment,
|
||||
y_axis_treatment,
|
||||
pixel_format,
|
||||
Cow::Borrowed(data),
|
||||
Cow::Borrowed(&*data),
|
||||
);
|
||||
|
||||
ctx.gl()
|
||||
|
@ -1144,7 +1145,7 @@ impl WebGLImpl {
|
|||
alpha_treatment,
|
||||
y_axis_treatment,
|
||||
pixel_format,
|
||||
Cow::Borrowed(data),
|
||||
Cow::Borrowed(&*data),
|
||||
);
|
||||
|
||||
ctx.gl()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue