Skip to content

Instantly share code, notes, and snippets.

Alexis Beingessner Gankro

Block or report user

Report or block Gankro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View memory-initialization.md

My mental model of Initialization and Deinitialization:

This is kind've a brain dump of concepts, and does not necessarily represent a well-defined and minimized model. For instance, it's not clear to me if deinitialized memory is a "real" thing, or just a concept I like to have to think about dropped memory.

There are 3 (5) states a bit can have: uninit, init (0 or 1), deinit (0 or 1)

Freshly allocated memory is uninit. mem::unitialized() produces uninit.

Initializing memory makes it init with a definite value.

View test.rs
#[cfg(not(target_os = "freebsd"))]
#[repr(C)]
pub struct ContainsNoExternTy {
pub field: no_extern::NoExternTy,
}
#[cfg(target_os = "freebsd")]
#[repr(C)]
pub struct ContainsNoExternTy {
pub field: u64,
View test.html
<!DOCTYPE HTML>
<html reftest-async-scroll>
<head>
<style>
body {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
View clipping.rs
// **** This clip-chain correctly clips the content
ClipChain((
id: (3, (1, 10)),
parent: None,
), [
Clip(4, (1, 10)),// [0]
Clip(2, (1, 10)),// [1]
]),// [16]
View builder.rs
(
output_rect: ((0, 0), (2880, 1710)),
background_color: Some((
r: 1,
g: 1,
b: 1,
a: 1,
)),
root_pic_index: (1),
pending_retained_tiles: (
View WebRenderApi.cpp
void DisplayListBuilder::PushShadow(const wr::LayoutRect& aRect,
const wr::LayoutRect& aClip,
bool aIsBackfaceVisible,
const wr::Shadow& aShadow) {
// Local clip_rects are translated inside of shadows, as they are assumed to
// be part of the element drawing itself, and not a parent frame clipping it.
// As such, it is not sound to apply the MergeClipLeaf optimization inside of
// shadows. So we disable the optimization when we encounter a shadow.
// Shadows don't span frames, so we don't have to worry about MergeClipLeaf
// being re-enabled mid-shadow. The optimization is restored in PopAllShadows.
View scene-1-0.rs
(
root_pipeline_id: Some((1, 1)),
pipelines: {
(1, 1): (
pipeline_id: (1, 1),
viewport_size: (2880, 1754),
content_size: (2880, 1754),
background_color: None,
display_list: [
PushStackingContext((
View goals.md
  • Help Webrender Ship

    • misc bugfixes that need help
  • Clean up Webrender's DisplayList

    • Understand what semantics are useful/guaranteed
    • Remove redundant/meaningless states
    • Reduce size of display list interprocess copies
  • Update the Rustonomicon to Rust 2018

    • Do a full read-through
View reftest.txt
[task 2019-03-19T04:34:06.169Z] REFTEST reftests/aa/rounded-rects.yaml == reftests/aa/rounded-rects-ref.png
[task 2019-03-19T04:34:06.622Z] REFTEST reftests/aa/aa-dist-bug.yaml == reftests/aa/aa-dist-bug-ref.yaml
[task 2019-03-19T04:34:06.794Z] REFTEST reftests/backface/backface-leaf.yaml == reftests/backface/backface-ref.yaml
[task 2019-03-19T04:34:06.923Z] REFTEST reftests/backface/backface-hidden.yaml == reftests/backface/backface-ref.yaml
[task 2019-03-19T04:34:07.051Z] REFTEST reftests/backface/backface-sc.yaml == reftests/backface/backface-ref.yaml
[task 2019-03-19T04:34:07.180Z] REFTEST reftests/backface/backface-picture.yaml == reftests/backface/backface-picture-ref.yaml
[task 2019-03-19T04:34:07.247Z] REFTEST reftests/backface/backface-double-flip.yaml == reftests/backface/blank.yaml
[task 2019-03-19T04:34:07.287Z] REFTEST reftests/backface/backface-both-sides.yaml == reftests/backface/backface-both-sides-ref.yaml
[task 2019-03-19T04:34:07.336Z] REFTEST reftests/blend/multiply.yaml == reftests/blend/
View reftest.txt
[task 2019-03-19T04:34:06.169Z] REFTEST reftests/aa/rounded-rects.yaml == reftests/aa/rounded-rects-ref.png
[task 2019-03-19T04:34:06.622Z] REFTEST reftests/aa/aa-dist-bug.yaml == reftests/aa/aa-dist-bug-ref.yaml
[task 2019-03-19T04:34:06.794Z] REFTEST reftests/backface/backface-leaf.yaml == reftests/backface/backface-ref.yaml
[task 2019-03-19T04:34:06.923Z] REFTEST reftests/backface/backface-hidden.yaml == reftests/backface/backface-ref.yaml
[task 2019-03-19T04:34:07.051Z] REFTEST reftests/backface/backface-sc.yaml == reftests/backface/backface-ref.yaml
[task 2019-03-19T04:34:07.180Z] REFTEST reftests/backface/backface-picture.yaml == reftests/backface/backface-picture-ref.yaml
[task 2019-03-19T04:34:07.247Z] REFTEST reftests/backface/backface-double-flip.yaml == reftests/backface/blank.yaml
[task 2019-03-19T04:34:07.287Z] REFTEST reftests/backface/backface-both-sides.yaml == reftests/backface/backface-both-sides-ref.yaml
[task 2019-03-19T04:34:07.336Z] REFTEST reftests/blend/multiply.yaml == reftests/blend/
You can’t perform that action at this time.