gecko-dev/gfx/wr/examples/blob.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

282 lines
9.7 KiB
Rust
Raw Normal View History

Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
extern crate gleam;
extern crate glutin;
extern crate rayon;
extern crate webrender;
extern crate winit;
#[path = "common/boilerplate.rs"]
mod boilerplate;
use crate::boilerplate::{Example, HandyDandyRectBuilder};
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
use rayon::{ThreadPool, ThreadPoolBuilder};
use rayon::prelude::*;
use std::collections::HashMap;
use std::sync::Arc;
use webrender::api::{self, DisplayListBuilder, DocumentId, PipelineId, RenderApi, Transaction};
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
use webrender::api::{ColorF, CommonItemProperties, SpaceAndClipInfo};
use webrender::api::units::*;
use webrender::euclid::{size2, rect};
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
// This example shows how to implement a very basic BlobImageHandler that can only render
// a checkerboard pattern.
// The deserialized command list internally used by this example is just a color.
type ImageRenderingCommands = api::ColorU;
// Serialize/deserialize the blob.
// For real usecases you should probably use serde rather than doing it by hand.
fn serialize_blob(color: api::ColorU) -> Arc<Vec<u8>> {
Arc::new(vec![color.r, color.g, color.b, color.a])
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
}
fn deserialize_blob(blob: &[u8]) -> Result<ImageRenderingCommands, ()> {
let mut iter = blob.iter();
return match (iter.next(), iter.next(), iter.next(), iter.next()) {
(Some(&r), Some(&g), Some(&b), Some(&a)) => Ok(api::ColorU::new(r, g, b, a)),
(Some(&a), None, None, None) => Ok(api::ColorU::new(a, a, a, a)),
_ => Err(()),
};
}
// This is the function that applies the deserialized drawing commands and generates
// actual image data.
fn render_blob(
commands: Arc<ImageRenderingCommands>,
descriptor: &api::BlobImageDescriptor,
tile: Option<TileOffset>,
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
) -> api::BlobImageResult {
let color = *commands;
// Note: This implementation ignores the dirty rect which isn't incorrect
// but is a missed optimization.
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
// Allocate storage for the result. Right now the resource cache expects the
// tiles to have have no stride or offset.
let bpp = 4;
let mut texels = Vec::with_capacity((descriptor.rect.size.area() * bpp) as usize);
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
// Generate a per-tile pattern to see it in the demo. For a real use case it would not
// make sense for the rendered content to depend on its tile.
let tile_checker = match tile {
Some(tile) => (tile.x % 2 == 0) != (tile.y % 2 == 0),
None => true,
};
let [w, h] = descriptor.rect.size.to_array();
let offset = descriptor.rect.origin;
for y in 0..h {
for x in 0..w {
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
// Apply the tile's offset. This is important: all drawing commands should be
// translated by this offset to give correct results with tiled blob images.
let x2 = x + offset.x;
let y2 = y + offset.y;
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
// Render a simple checkerboard pattern
let checker = if (x2 % 20 >= 10) != (y2 % 20 >= 10) {
1
} else {
0
};
// ..nested in the per-tile checkerboard pattern
let tc = if tile_checker { 0 } else { (1 - checker) * 40 };
match descriptor.format {
api::ImageFormat::BGRA8 => {
texels.push(color.b * checker + tc);
texels.push(color.g * checker + tc);
texels.push(color.r * checker + tc);
texels.push(color.a * checker + tc);
}
api::ImageFormat::R8 => {
texels.push(color.a * checker + tc);
}
_ => {
return Err(api::BlobImageError::Other(
format!("Unsupported image format"),
));
}
}
}
}
Ok(api::RasterizedBlobImage {
data: Arc::new(texels),
rasterized_rect: size2(w, h).into(),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
})
}
struct CheckerboardRenderer {
// We are going to defer the rendering work to worker threads.
// Using a pre-built Arc<ThreadPool> rather than creating our own threads
// makes it possible to share the same thread pool as the glyph renderer (if we
// want to).
workers: Arc<ThreadPool>,
// The deserialized drawing commands.
// In this example we store them in Arcs. This isn't necessary since in this simplified
// case the command list is a simple 32 bits value and would be cheap to clone before sending
// to the workers. But in a more realistic scenario the commands would typically be bigger
// and more expensive to clone, so let's pretend it is also the case here.
image_cmds: HashMap<api::BlobImageKey, Arc<ImageRenderingCommands>>,
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
}
impl CheckerboardRenderer {
fn new(workers: Arc<ThreadPool>) -> Self {
CheckerboardRenderer {
image_cmds: HashMap::new(),
workers,
}
}
}
impl api::BlobImageHandler for CheckerboardRenderer {
fn add(&mut self, key: api::BlobImageKey, cmds: Arc<api::BlobImageData>,
_visible_rect: &DeviceIntRect, _: Option<api::TileSize>) {
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
self.image_cmds
.insert(key, Arc::new(deserialize_blob(&cmds[..]).unwrap()));
}
fn update(&mut self, key: api::BlobImageKey, cmds: Arc<api::BlobImageData>,
_visible_rect: &DeviceIntRect, _dirty_rect: &BlobDirtyRect) {
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
// Here, updating is just replacing the current version of the commands with
// the new one (no incremental updates).
self.image_cmds
.insert(key, Arc::new(deserialize_blob(&cmds[..]).unwrap()));
}
fn delete(&mut self, key: api::BlobImageKey) {
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
self.image_cmds.remove(&key);
}
fn prepare_resources(
&mut self,
_services: &dyn api::BlobImageResources,
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
_requests: &[api::BlobImageParams],
) {}
fn delete_font(&mut self, _font: api::FontKey) {}
fn delete_font_instance(&mut self, _instance: api::FontInstanceKey) {}
fn clear_namespace(&mut self, _namespace: api::IdNamespace) {}
fn create_blob_rasterizer(&mut self) -> Box<dyn api::AsyncBlobImageRasterizer> {
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
Box::new(Rasterizer {
workers: Arc::clone(&self.workers),
image_cmds: self.image_cmds.clone(),
})
}
}
struct Rasterizer {
workers: Arc<ThreadPool>,
image_cmds: HashMap<api::BlobImageKey, Arc<ImageRenderingCommands>>,
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
}
impl api::AsyncBlobImageRasterizer for Rasterizer {
fn rasterize(
&mut self,
requests: &[api::BlobImageParams],
_low_priority: bool
) -> Vec<(api::BlobImageRequest, api::BlobImageResult)> {
let requests: Vec<(&api::BlobImageParams, Arc<ImageRenderingCommands>)> = requests.into_iter().map(|params| {
(params, Arc::clone(&self.image_cmds[&params.request.key]))
}).collect();
self.workers.install(|| {
requests.into_par_iter().map(|(params, commands)| {
(params.request, render_blob(commands, &params.descriptor, params.request.tile))
}).collect()
})
}
}
struct App {}
impl Example for App {
fn render(
&mut self,
api: &RenderApi,
builder: &mut DisplayListBuilder,
txn: &mut Transaction,
_device_size: DeviceIntSize,
pipeline_id: PipelineId,
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
_document_id: DocumentId,
) {
let blob_img1 = api.generate_blob_image_key();
txn.add_blob_image(
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
blob_img1,
api::ImageDescriptor::new(500, 500, api::ImageFormat::BGRA8, true, false),
serialize_blob(api::ColorU::new(50, 50, 150, 255)),
rect(0, 0, 500, 500),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
Some(128),
);
let blob_img2 = api.generate_blob_image_key();
txn.add_blob_image(
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
blob_img2,
api::ImageDescriptor::new(200, 200, api::ImageFormat::BGRA8, true, false),
serialize_blob(api::ColorU::new(50, 150, 50, 255)),
rect(0, 0, 200, 200),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
None,
);
let space_and_clip = SpaceAndClipInfo::root_scroll(pipeline_id);
builder.push_simple_stacking_context(
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
LayoutPoint::zero(),
space_and_clip.spatial_id,
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
true,
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
);
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
let bounds = (30, 30).by(500, 500);
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
builder.push_image(
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
&CommonItemProperties::new(bounds, space_and_clip),
bounds,
LayoutSize::new(500.0, 500.0),
LayoutSize::new(0.0, 0.0),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
api::ImageRendering::Auto,
api::AlphaType::PremultipliedAlpha,
blob_img1.as_image(),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
ColorF::WHITE,
);
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
let bounds = (600, 600).by(200, 200);
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
builder.push_image(
Bug 1536121 - rearchitect the webrender display-list. r=gw disclaimer: this isn't an *amazing* cleanup, but more of a major step that unlocks the ability to do more minor cleanups and refinements. There's some messy things and inconsistencies here and there, but we can hopefully iron them out over time. 1. The primary change here is to move from struct { common_fields, enum(specific_fields) } to enum (maybe_common_fields, specific_fields) most notably this drops the common fields from a ton of things that don't need them PopXXX, SetXXX, ClipChain, etc. 2. Additionally some types have had some redundant states shaved off, for instance, rect no longer has *both* bounds and a clip_rect, as the intersection of the two can be used. This was done a bit conservatively as some adjustments will need to be done to the backend to fully eliminate some states, and this can be done more incrementally. 2.5. As a minor side-effect of 2, we now early-reject some primitives whose bounds and clip_rect are disjoint. 3. A HitTest display item has been added, which is just a Rect without color. In addition to the minor space wins from this, this makes it much easier to debug display lists 4. Adds a bunch of comments to the display list, making it easier to understand things. The end result of all these changes is a significantly smaller and easier to understand display list. Especially on pages like gmail which have so many clip chains. However this ultimately just makes text an even greater percentage of pages (often 70-80%). Differential Revision: https://phabricator.services.mozilla.com/D27439 --HG-- extra : moz-landing-system : lando
2019-04-23 17:29:58 +00:00
&CommonItemProperties::new(bounds, space_and_clip),
bounds,
LayoutSize::new(200.0, 200.0),
LayoutSize::new(0.0, 0.0),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
api::ImageRendering::Auto,
api::AlphaType::PremultipliedAlpha,
blob_img2.as_image(),
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059 --HG-- rename : gfx/webrender/src/device/mod.rs => gfx/wr/direct-composition/src/main.rs rename : gfx/webrender/Cargo.toml => gfx/wr/webrender/Cargo.toml rename : gfx/webrender/build.rs => gfx/wr/webrender/build.rs rename : gfx/webrender/doc/CLIPPING_AND_POSITIONING.md => gfx/wr/webrender/doc/CLIPPING_AND_POSITIONING.md rename : gfx/webrender/doc/blob.md => gfx/wr/webrender/doc/blob.md rename : gfx/webrender/doc/text-rendering.md => gfx/wr/webrender/doc/text-rendering.md rename : gfx/webrender/res/Proggy.ttf => gfx/wr/webrender/res/Proggy.ttf rename : gfx/webrender/res/area-lut.tga => gfx/wr/webrender/res/area-lut.tga rename : gfx/webrender/res/base.glsl => gfx/wr/webrender/res/base.glsl rename : gfx/webrender/res/brush.glsl => gfx/wr/webrender/res/brush.glsl rename : gfx/webrender/res/brush_blend.glsl => gfx/wr/webrender/res/brush_blend.glsl rename : gfx/webrender/res/brush_image.glsl => gfx/wr/webrender/res/brush_image.glsl rename : gfx/webrender/res/brush_linear_gradient.glsl => gfx/wr/webrender/res/brush_linear_gradient.glsl rename : gfx/webrender/res/brush_mix_blend.glsl => gfx/wr/webrender/res/brush_mix_blend.glsl rename : gfx/webrender/res/brush_radial_gradient.glsl => gfx/wr/webrender/res/brush_radial_gradient.glsl rename : gfx/webrender/res/brush_solid.glsl => gfx/wr/webrender/res/brush_solid.glsl rename : gfx/webrender/res/brush_yuv_image.glsl => gfx/wr/webrender/res/brush_yuv_image.glsl rename : gfx/webrender/res/clip_shared.glsl => gfx/wr/webrender/res/clip_shared.glsl rename : gfx/webrender/res/cs_blur.glsl => gfx/wr/webrender/res/cs_blur.glsl rename : gfx/webrender/res/cs_border_segment.glsl => gfx/wr/webrender/res/cs_border_segment.glsl rename : gfx/webrender/res/cs_border_solid.glsl => gfx/wr/webrender/res/cs_border_solid.glsl rename : gfx/webrender/res/cs_clip_box_shadow.glsl => gfx/wr/webrender/res/cs_clip_box_shadow.glsl rename : gfx/webrender/res/cs_clip_image.glsl => gfx/wr/webrender/res/cs_clip_image.glsl rename : gfx/webrender/res/cs_clip_rectangle.glsl => gfx/wr/webrender/res/cs_clip_rectangle.glsl rename : gfx/webrender/res/cs_line_decoration.glsl => gfx/wr/webrender/res/cs_line_decoration.glsl rename : gfx/webrender/res/cs_scale.glsl => gfx/wr/webrender/res/cs_scale.glsl rename : gfx/webrender/res/debug_color.glsl => gfx/wr/webrender/res/debug_color.glsl rename : gfx/webrender/res/debug_font.glsl => gfx/wr/webrender/res/debug_font.glsl rename : gfx/webrender/res/ellipse.glsl => gfx/wr/webrender/res/ellipse.glsl rename : gfx/webrender/res/gpu_cache.glsl => gfx/wr/webrender/res/gpu_cache.glsl rename : gfx/webrender/res/gpu_cache_update.glsl => gfx/wr/webrender/res/gpu_cache_update.glsl rename : gfx/webrender/res/pf_vector_cover.glsl => gfx/wr/webrender/res/pf_vector_cover.glsl rename : gfx/webrender/res/pf_vector_stencil.glsl => gfx/wr/webrender/res/pf_vector_stencil.glsl rename : gfx/webrender/res/prim_shared.glsl => gfx/wr/webrender/res/prim_shared.glsl rename : gfx/webrender/res/ps_split_composite.glsl => gfx/wr/webrender/res/ps_split_composite.glsl rename : gfx/webrender/res/ps_text_run.glsl => gfx/wr/webrender/res/ps_text_run.glsl rename : gfx/webrender/res/rect.glsl => gfx/wr/webrender/res/rect.glsl rename : gfx/webrender/res/render_task.glsl => gfx/wr/webrender/res/render_task.glsl rename : gfx/webrender/res/shared.glsl => gfx/wr/webrender/res/shared.glsl rename : gfx/webrender/res/shared_other.glsl => gfx/wr/webrender/res/shared_other.glsl rename : gfx/webrender/res/snap.glsl => gfx/wr/webrender/res/snap.glsl rename : gfx/webrender/res/transform.glsl => gfx/wr/webrender/res/transform.glsl rename : gfx/webrender/src/batch.rs => gfx/wr/webrender/src/batch.rs rename : gfx/webrender/src/border.rs => gfx/wr/webrender/src/border.rs rename : gfx/webrender/src/box_shadow.rs => gfx/wr/webrender/src/box_shadow.rs rename : gfx/webrender/src/capture.rs => gfx/wr/webrender/src/capture.rs rename : gfx/webrender/src/clip.rs => gfx/wr/webrender/src/clip.rs rename : gfx/webrender/src/clip_scroll_tree.rs => gfx/wr/webrender/src/clip_scroll_tree.rs rename : gfx/webrender/src/debug_colors.rs => gfx/wr/webrender/src/debug_colors.rs rename : gfx/webrender/src/debug_font_data.rs => gfx/wr/webrender/src/debug_font_data.rs rename : gfx/webrender/src/debug_render.rs => gfx/wr/webrender/src/debug_render.rs rename : gfx/webrender/src/debug_server.rs => gfx/wr/webrender/src/debug_server.rs rename : gfx/webrender/src/device/gl.rs => gfx/wr/webrender/src/device/gl.rs rename : gfx/webrender/src/device/mod.rs => gfx/wr/webrender/src/device/mod.rs rename : gfx/webrender/src/device/query_gl.rs => gfx/wr/webrender/src/device/query_gl.rs rename : gfx/webrender/src/display_list_flattener.rs => gfx/wr/webrender/src/display_list_flattener.rs rename : gfx/webrender/src/ellipse.rs => gfx/wr/webrender/src/ellipse.rs rename : gfx/webrender/src/frame_builder.rs => gfx/wr/webrender/src/frame_builder.rs rename : gfx/webrender/src/freelist.rs => gfx/wr/webrender/src/freelist.rs rename : gfx/webrender/src/gamma_lut.rs => gfx/wr/webrender/src/gamma_lut.rs rename : gfx/webrender/src/glyph_cache.rs => gfx/wr/webrender/src/glyph_cache.rs rename : gfx/webrender/src/glyph_rasterizer/mod.rs => gfx/wr/webrender/src/glyph_rasterizer/mod.rs rename : gfx/webrender/src/glyph_rasterizer/no_pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/no_pathfinder.rs rename : gfx/webrender/src/glyph_rasterizer/pathfinder.rs => gfx/wr/webrender/src/glyph_rasterizer/pathfinder.rs rename : gfx/webrender/src/gpu_cache.rs => gfx/wr/webrender/src/gpu_cache.rs rename : gfx/webrender/src/gpu_glyph_renderer.rs => gfx/wr/webrender/src/gpu_glyph_renderer.rs rename : gfx/webrender/src/gpu_types.rs => gfx/wr/webrender/src/gpu_types.rs rename : gfx/webrender/src/hit_test.rs => gfx/wr/webrender/src/hit_test.rs rename : gfx/webrender/src/image.rs => gfx/wr/webrender/src/image.rs rename : gfx/webrender/src/intern.rs => gfx/wr/webrender/src/intern.rs rename : gfx/webrender/src/internal_types.rs => gfx/wr/webrender/src/internal_types.rs rename : gfx/webrender/src/lib.rs => gfx/wr/webrender/src/lib.rs rename : gfx/webrender/src/picture.rs => gfx/wr/webrender/src/picture.rs rename : gfx/webrender/src/platform/macos/font.rs => gfx/wr/webrender/src/platform/macos/font.rs rename : gfx/webrender/src/platform/unix/font.rs => gfx/wr/webrender/src/platform/unix/font.rs rename : gfx/webrender/src/platform/windows/font.rs => gfx/wr/webrender/src/platform/windows/font.rs rename : gfx/webrender/src/prim_store.rs => gfx/wr/webrender/src/prim_store.rs rename : gfx/webrender/src/print_tree.rs => gfx/wr/webrender/src/print_tree.rs rename : gfx/webrender/src/profiler.rs => gfx/wr/webrender/src/profiler.rs rename : gfx/webrender/src/record.rs => gfx/wr/webrender/src/record.rs rename : gfx/webrender/src/render_backend.rs => gfx/wr/webrender/src/render_backend.rs rename : gfx/webrender/src/render_task.rs => gfx/wr/webrender/src/render_task.rs rename : gfx/webrender/src/renderer.rs => gfx/wr/webrender/src/renderer.rs rename : gfx/webrender/src/resource_cache.rs => gfx/wr/webrender/src/resource_cache.rs rename : gfx/webrender/src/scene.rs => gfx/wr/webrender/src/scene.rs rename : gfx/webrender/src/scene_builder.rs => gfx/wr/webrender/src/scene_builder.rs rename : gfx/webrender/src/segment.rs => gfx/wr/webrender/src/segment.rs rename : gfx/webrender/src/shade.rs => gfx/wr/webrender/src/shade.rs rename : gfx/webrender/src/spatial_node.rs => gfx/wr/webrender/src/spatial_node.rs rename : gfx/webrender/src/surface.rs => gfx/wr/webrender/src/surface.rs rename : gfx/webrender/src/texture_allocator.rs => gfx/wr/webrender/src/texture_allocator.rs rename : gfx/webrender/src/texture_cache.rs => gfx/wr/webrender/src/texture_cache.rs rename : gfx/webrender/src/tiling.rs => gfx/wr/webrender/src/tiling.rs rename : gfx/webrender/src/util.rs => gfx/wr/webrender/src/util.rs rename : gfx/webrender/tests/angle_shader_validation.rs => gfx/wr/webrender/tests/angle_shader_validation.rs rename : gfx/webrender/tests/bug_124.html => gfx/wr/webrender/tests/bug_124.html rename : gfx/webrender/tests/bug_134.html => gfx/wr/webrender/tests/bug_134.html rename : gfx/webrender/tests/bug_137.html => gfx/wr/webrender/tests/bug_137.html rename : gfx/webrender/tests/bug_143.html => gfx/wr/webrender/tests/bug_143.html rename : gfx/webrender/tests/bug_159.html => gfx/wr/webrender/tests/bug_159.html rename : gfx/webrender/tests/bug_166.html => gfx/wr/webrender/tests/bug_166.html rename : gfx/webrender/tests/bug_176.html => gfx/wr/webrender/tests/bug_176.html rename : gfx/webrender/tests/bug_177.html => gfx/wr/webrender/tests/bug_177.html rename : gfx/webrender/tests/bug_178.html => gfx/wr/webrender/tests/bug_178.html rename : gfx/webrender/tests/bug_203a.html => gfx/wr/webrender/tests/bug_203a.html rename : gfx/webrender/tests/bug_203b.html => gfx/wr/webrender/tests/bug_203b.html rename : gfx/webrender/tests/bug_servo_10136.html => gfx/wr/webrender/tests/bug_servo_10136.html rename : gfx/webrender/tests/bug_servo_10164.html => gfx/wr/webrender/tests/bug_servo_10164.html rename : gfx/webrender/tests/bug_servo_10307.html => gfx/wr/webrender/tests/bug_servo_10307.html rename : gfx/webrender/tests/bug_servo_11358.html => gfx/wr/webrender/tests/bug_servo_11358.html rename : gfx/webrender/tests/bug_servo_9983a.html => gfx/wr/webrender/tests/bug_servo_9983a.html rename : gfx/webrender/tests/color_pattern_1.png => gfx/wr/webrender/tests/color_pattern_1.png rename : gfx/webrender/tests/color_pattern_2.png => gfx/wr/webrender/tests/color_pattern_2.png rename : gfx/webrender/tests/fixed-position.html => gfx/wr/webrender/tests/fixed-position.html rename : gfx/webrender/tests/mix-blend-mode-2.html => gfx/wr/webrender/tests/mix-blend-mode-2.html rename : gfx/webrender/tests/mix-blend-mode.html => gfx/wr/webrender/tests/mix-blend-mode.html rename : gfx/webrender/tests/nav-1.html => gfx/wr/webrender/tests/nav-1.html rename : gfx/webrender/tests/nav-2.html => gfx/wr/webrender/tests/nav-2.html rename : gfx/webrender_api/Cargo.toml => gfx/wr/webrender_api/Cargo.toml rename : gfx/webrender_api/src/api.rs => gfx/wr/webrender_api/src/api.rs rename : gfx/webrender_api/src/channel.rs => gfx/wr/webrender_api/src/channel.rs rename : gfx/webrender_api/src/channel_ipc.rs => gfx/wr/webrender_api/src/channel_ipc.rs rename : gfx/webrender_api/src/channel_mpsc.rs => gfx/wr/webrender_api/src/channel_mpsc.rs rename : gfx/webrender_api/src/color.rs => gfx/wr/webrender_api/src/color.rs rename : gfx/webrender_api/src/display_item.rs => gfx/wr/webrender_api/src/display_item.rs rename : gfx/webrender_api/src/display_list.rs => gfx/wr/webrender_api/src/display_list.rs rename : gfx/webrender_api/src/font.rs => gfx/wr/webrender_api/src/font.rs rename : gfx/webrender_api/src/gradient_builder.rs => gfx/wr/webrender_api/src/gradient_builder.rs rename : gfx/webrender_api/src/image.rs => gfx/wr/webrender_api/src/image.rs rename : gfx/webrender_api/src/lib.rs => gfx/wr/webrender_api/src/lib.rs rename : gfx/webrender_api/src/units.rs => gfx/wr/webrender_api/src/units.rs rename : gfx/wrench/.gitignore => gfx/wr/wrench/.gitignore rename : gfx/wrench/Cargo.toml => gfx/wr/wrench/Cargo.toml rename : gfx/wrench/README.md => gfx/wr/wrench/README.md rename : gfx/wrench/build.rs => gfx/wr/wrench/build.rs rename : gfx/webrender/res/Proggy.ttf => gfx/wr/wrench/reftests/text/Proggy.ttf rename : gfx/wrench/res/wrench.exe.manifest => gfx/wr/wrench/res/wrench.exe.manifest rename : gfx/wrench/src/angle.rs => gfx/wr/wrench/src/angle.rs rename : gfx/wrench/src/args.yaml => gfx/wr/wrench/src/args.yaml rename : gfx/wrench/src/binary_frame_reader.rs => gfx/wr/wrench/src/binary_frame_reader.rs rename : gfx/wrench/src/blob.rs => gfx/wr/wrench/src/blob.rs rename : gfx/wrench/src/cgfont_to_data.rs => gfx/wr/wrench/src/cgfont_to_data.rs rename : gfx/wrench/src/egl.rs => gfx/wr/wrench/src/egl.rs rename : gfx/wrench/src/json_frame_writer.rs => gfx/wr/wrench/src/json_frame_writer.rs rename : gfx/wrench/src/main.rs => gfx/wr/wrench/src/main.rs rename : gfx/wrench/src/parse_function.rs => gfx/wr/wrench/src/parse_function.rs rename : gfx/wrench/src/perf.rs => gfx/wr/wrench/src/perf.rs rename : gfx/wrench/src/png.rs => gfx/wr/wrench/src/png.rs rename : gfx/wrench/src/premultiply.rs => gfx/wr/wrench/src/premultiply.rs rename : gfx/wrench/src/rawtest.rs => gfx/wr/wrench/src/rawtest.rs rename : gfx/wrench/src/reftest.rs => gfx/wr/wrench/src/reftest.rs rename : gfx/wrench/src/ron_frame_writer.rs => gfx/wr/wrench/src/ron_frame_writer.rs rename : gfx/wrench/src/scene.rs => gfx/wr/wrench/src/scene.rs rename : gfx/wrench/src/wrench.rs => gfx/wr/wrench/src/wrench.rs rename : gfx/wrench/src/yaml_frame_reader.rs => gfx/wr/wrench/src/yaml_frame_reader.rs rename : gfx/wrench/src/yaml_frame_writer.rs => gfx/wr/wrench/src/yaml_frame_writer.rs rename : gfx/wrench/src/yaml_helper.rs => gfx/wr/wrench/src/yaml_helper.rs extra : moz-landing-system : lando
2018-11-22 21:47:48 +00:00
ColorF::WHITE,
);
builder.pop_stacking_context();
}
}
fn main() {
let workers =
ThreadPoolBuilder::new().thread_name(|idx| format!("WebRender:Worker#{}", idx))
.build();
let workers = Arc::new(workers.unwrap());
let opts = webrender::RendererOptions {
workers: Some(Arc::clone(&workers)),
// Register our blob renderer, so that WebRender integrates it in the resource cache..
// Share the same pool of worker threads between WebRender and our blob renderer.
blob_image_handler: Some(Box::new(CheckerboardRenderer::new(Arc::clone(&workers)))),
..Default::default()
};
let mut app = App {};
boilerplate::main_wrapper(&mut app, Some(opts));
}