aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_paint_task.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-05-23 19:49:53 -0400
committerCorey Farwell <coreyf@rwell.org>2015-05-24 00:01:49 -0400
commit8e3f4bba85b9b246fb7da8ea0994fb0160578c1b (patch)
tree2c66c695c97d638df81aeb40ac54ccc6d0cc8cb9 /components/canvas/webgl_paint_task.rs
parent7561f7b83f27811683c1e724d75a935573a72813 (diff)
downloadservo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.tar.gz
servo-8e3f4bba85b9b246fb7da8ea0994fb0160578c1b.zip
Reduce max line length from 150 to 120 characters
Part of https://github.com/servo/servo/issues/6041
Diffstat (limited to 'components/canvas/webgl_paint_task.rs')
-rw-r--r--components/canvas/webgl_paint_task.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/components/canvas/webgl_paint_task.rs b/components/canvas/webgl_paint_task.rs
index c98f30ebbad..99fd350ff32 100644
--- a/components/canvas/webgl_paint_task.rs
+++ b/components/canvas/webgl_paint_task.rs
@@ -30,9 +30,9 @@ unsafe impl Send for WebGLPaintTask {}
impl WebGLPaintTask {
fn new(size: Size2D<i32>) -> Result<WebGLPaintTask, &'static str> {
// TODO(ecoal95): Get the GLContextAttributes from the `GetContext` call
- let context = try!(GLContext::create_offscreen_with_color_attachment(size,
- GLContextAttributes::default(),
- ColorAttachmentType::TextureWithSurface));
+ let context = try!(
+ GLContext::create_offscreen_with_color_attachment(
+ size, GLContextAttributes::default(), ColorAttachmentType::TextureWithSurface));
Ok(WebGLPaintTask {
size: size,
original_context_size: size,
@@ -50,10 +50,13 @@ impl WebGLPaintTask {
CanvasWebGLMsg::CreateBuffer(chan) => self.create_buffer(chan),
CanvasWebGLMsg::DrawArrays(mode, first, count) => self.draw_arrays(mode, first, count),
CanvasWebGLMsg::EnableVertexAttribArray(attrib_id) => self.enable_vertex_attrib_array(attrib_id),
- CanvasWebGLMsg::GetAttribLocation(program_id, name, chan) => self.get_attrib_location(program_id, name, chan),
+ CanvasWebGLMsg::GetAttribLocation(program_id, name, chan) =>
+ self.get_attrib_location(program_id, name, chan),
CanvasWebGLMsg::GetShaderInfoLog(shader_id, chan) => self.get_shader_info_log(shader_id, chan),
- CanvasWebGLMsg::GetShaderParameter(shader_id, param_id, chan) => self.get_shader_parameter(shader_id, param_id, chan),
- CanvasWebGLMsg::GetUniformLocation(program_id, name, chan) => self.get_uniform_location(program_id, name, chan),
+ CanvasWebGLMsg::GetShaderParameter(shader_id, param_id, chan) =>
+ self.get_shader_parameter(shader_id, param_id, chan),
+ CanvasWebGLMsg::GetUniformLocation(program_id, name, chan) =>
+ self.get_uniform_location(program_id, name, chan),
CanvasWebGLMsg::CompileShader(shader_id) => self.compile_shader(shader_id),
CanvasWebGLMsg::CreateProgram(chan) => self.create_program(chan),
CanvasWebGLMsg::CreateShader(shader_type, chan) => self.create_shader(shader_type, chan),