aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_thread.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-05-25 14:58:50 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2018-06-06 12:24:47 +0200
commitf1288cc6e0a52d377619f0ec9634eefd29ba15dc (patch)
treede9787bb29bf8adb2b759774bab0064c27cf44b2 /components/canvas/webgl_thread.rs
parenteb1dfd07756f690dfbebae2e53447bc747c5763a (diff)
downloadservo-f1288cc6e0a52d377619f0ec9634eefd29ba15dc.tar.gz
servo-f1288cc6e0a52d377619f0ec9634eefd29ba15dc.zip
Implement EXT_texture_filter_anisotropic
Diffstat (limited to 'components/canvas/webgl_thread.rs')
-rw-r--r--components/canvas/webgl_thread.rs19
1 files changed, 12 insertions, 7 deletions
diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs
index b48b72f2bfc..7b0b120d037 100644
--- a/components/canvas/webgl_thread.rs
+++ b/components/canvas/webgl_thread.rs
@@ -761,9 +761,6 @@ impl WebGLImpl {
Self::get_framebuffer_attachment_parameter(ctx.gl(), target, attachment, pname, chan),
WebGLCommand::GetVertexAttribOffset(index, pname, ref chan) =>
Self::vertex_attrib_offset(ctx.gl(), index, pname, chan),
- WebGLCommand::GetTexParameter(target, pname, ref chan) => {
- chan.send(ctx.gl().get_tex_parameter_iv(target, pname)).unwrap();
- }
WebGLCommand::GetShaderPrecisionFormat(shader_type, precision_type, ref chan) =>
Self::shader_precision_format(ctx.gl(), shader_type, precision_type, chan),
WebGLCommand::GetExtensions(ref chan) =>
@@ -864,10 +861,6 @@ impl WebGLImpl {
WebGLCommand::TexImage2D(target, level, internal, width, height, format, data_type, ref data) =>
ctx.gl().tex_image_2d(target, level, internal, width, height,
/*border*/0, format, data_type, Some(data)),
- WebGLCommand::TexParameteri(target, name, value) =>
- ctx.gl().tex_parameter_i(target, name, value),
- WebGLCommand::TexParameterf(target, name, value) =>
- ctx.gl().tex_parameter_f(target, name, value),
WebGLCommand::TexSubImage2D(target, level, xoffset, yoffset, x, y, width, height, ref data) =>
ctx.gl().tex_sub_image_2d(target, level, xoffset, yoffset, x, y, width, height, data),
WebGLCommand::DrawingBufferWidth(ref sender) =>
@@ -1020,6 +1013,18 @@ impl WebGLImpl {
};
sender.send(result).unwrap();
}
+ WebGLCommand::GetTexParameterFloat(target, param, ref sender) => {
+ sender.send(ctx.gl().get_tex_parameter_fv(target, param as u32)).unwrap();
+ }
+ WebGLCommand::GetTexParameterInt(target, param, ref sender) => {
+ sender.send(ctx.gl().get_tex_parameter_iv(target, param as u32)).unwrap();
+ }
+ WebGLCommand::TexParameteri(target, param, value) => {
+ ctx.gl().tex_parameter_i(target, param as u32, value)
+ }
+ WebGLCommand::TexParameterf(target, param, value) => {
+ ctx.gl().tex_parameter_f(target, param as u32, value)
+ }
}
// TODO: update test expectations in order to enable debug assertions