Skip to content

Instantly share code, notes, and snippets.

diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp
index d6757151b7f0..8919e03eef4b 100644
--- a/gfx/layers/apz/src/APZCTreeManager.cpp
+++ b/gfx/layers/apz/src/APZCTreeManager.cpp
@@ -2507,17 +2507,19 @@ already_AddRefed<AsyncPanZoomController> APZCTreeManager::GetAPZCAtPointWR(
return result.forget();
}
LayersId layersId = wr::AsLayersId(pipelineId);
result = GetTargetAPZC(layersId, scrollId);
diff --git a/gfx/wr/webrender/src/display_list_flattener.rs b/gfx/wr/webrender/src/display_list_flattener.rs
index 79d07417aeda..149f07339754 100644
--- a/gfx/wr/webrender/src/display_list_flattener.rs
+++ b/gfx/wr/webrender/src/display_list_flattener.rs
@@ -696,17 +696,19 @@ impl<'a> DisplayListFlattener<'a> {
&'b mut self,
item: DisplayItemRef<'a, 'b>,
pipeline_id: PipelineId,
reference_frame_relative_offset: LayoutVector2D,
) -> Option<BuiltDisplayListIter<'a>> {
diff --git a/gfx/layers/wr/ClipManager.cpp b/gfx/layers/wr/ClipManager.cpp
index 180bce7dfc46..72e09af615de 100644
--- a/gfx/layers/wr/ClipManager.cpp
+++ b/gfx/layers/wr/ClipManager.cpp
@@ -355,17 +355,17 @@ Maybe<wr::WrClipChainId> ClipManager::DefineClipChain(
cache[chain] = clipId;
CLIP_LOG("cache[%p] <= %zu\n", chain, clipId.id);
}
if (clipIds.IsEmpty()) {
@staktrace
staktrace / notes
Created January 7, 2019 16:15
lldb on android
background:
- insert a MOZ_CRASH or MOZ_RELEASE_ASSERT(false) in gecko somewhere that you can trigger
- trigger the crash
- lldb catches the signal but just gives the crash address with no stack or symbols
debugging:
- in the AS lldb panel, run:
target modules list
- observe there is no libxul.so in the list, means lldb doesn't know about libxul.so
- you can force it to add it by running this (replace path as needed):
@staktrace
staktrace / log-passes
Created January 3, 2019 21:21
bug 1504590 logging
Building new mask task with clips [1; 3] (outer_rect: TypedRect(1606×717 at (151,905)))
... Looking at clip ClipNode { item: Rectangle(2560.0×1474.0, Clip), gpu_cache_handle: GpuCacheHandle { location: Some(CacheLocation { block_index: BlockIndex(1459), epoch: Epoch(0) }) } }
... Looking at clip ClipNode { item: Rectangle(2560.0×1474.0, Clip), gpu_cache_handle: GpuCacheHandle { location: Some(CacheLocation { block_index: BlockIndex(1459), epoch: Epoch(0) }) } }
... Looking at clip ClipNode { item: Rectangle(2530.0×1474.0, Clip), gpu_cache_handle: GpuCacheHandle { location: Some(CacheLocation { block_index: BlockIndex(1458), epoch: Epoch(0) }) } }
Building new mask task with clips [5; 3] (outer_rect: TypedRect(955×599 at (819,1023)))
... Looking at clip ClipNode { item: Rectangle(2560.0×1474.0, Clip), gpu_cache_handle: GpuCacheHandle { location: Some(CacheLocation { block_index: BlockIndex(1459), epoch: Epoch(0) }) } }
... Looking at clip ClipNode { item: Rectangle(2560.0×1474.0, Clip), gpu_cache_handle: GpuCa
A SSH connection has been successfully established.
Your account (kgupta@mozilla.com) has privileges to access Mercurial over
SSH.
You are a member of the following LDAP groups that govern source control
access:
scm_level_1, scm_level_2, scm_level_3
@staktrace
staktrace / gist:a83dd0d66e29f0d049cc6b16d6cf71b2
Created November 26, 2018 19:28
debugging crashtest in docker
# Install and start docker, e.g. make sure `docker ps` doesn't just fail
# Then download the docker image that the test runs in (warning: multi-gig download here)
./mach taskcluster-load-image K-qJkvIqQQ-EFK8-4zg_nA
# The above will register the image into docker, and give you a command to run. Don't use that command, because it will give you an unprivileged shell and you can't use gdb there. Do this instead:
docker run -it --privileged --rm desktop1604-test:11935082015e43a2cb5ed7c32b4648fdf7faea2281f959b713a72b174dbadaaf bash
# Inside the docker container shell
Traceback (most recent call last):
File "/Users/kats/zspace/gecko/taskcluster/mach_commands.py", line 444, in load_image
ok = load_image_by_task_id(task_id, tag)
File "/Users/kats/zspace/gecko/taskcluster/taskgraph/docker.py", line 42, in load_image_by_task_id
result = load_image(artifact_url, tag)
File "/Users/kats/zspace/gecko/taskcluster/taskgraph/docker.py", line 180, in load_image
docker.post_to_docker(download_and_modify_image(), '/images/load', quiet=0)
File "/Users/kats/zspace/gecko/taskcluster/taskgraph/util/docker.py", line 50, in post_to_docker
headers={'Content-Type': 'application/x-tar'},
File "/Users/kats/zspace/gecko/third_party/python/requests/requests/sessions.py", line 512, in post
-- WebRender display list build --
GenericDisplayItem { item: PushStackingContext(PushStackingContextDisplayItem { stacking_context: StackingContext { transform_style: Flat, mix_blend_mode: Normal, clip_node_id: None, raster_space: Screen } }), clip_and_scroll: ClipAndScrollInfo { scroll_node_id: Spatial(1, PipelineId(1, 7)), clip_node_id: None }, info: PrimitiveInfo { rect: TypedRect(0.0×0.0 at (0.0,0.0)), clip_rect: TypedRect(0.0×0.0 at (0.0,0.0)), is_backface_visible: true, tag: None } }
SolidColor p=0x10fb59ca0 f=0x10f7bc020(Viewport(-1)) key=49 bounds(0,0,76800,44220) layerBounds(0,0,76800,44220) visible(0,0,76800,44220) building(0,0,76800,44220) componentAlpha(0,0,0,0) clip() asr() clipChain() uniform ref=0x10f7bc020 agr=0x10f7bc020 (opaque 0,0,76800,44220) (rgba 255,255,255,255)
GenericDisplayItem { item: Rectangle(RectangleDisplayItem { color: ColorF { r: 1.0, g: 1.0, b: 1.0, a: 1.0 } }), clip_and_scroll: ClipAndScrollInfo { scroll_node_id: Spatial(1, PipelineId(1, 7)), clip_node_id: None }, i
I/ActivityManager( 799): Process org.mozilla.geckoview_example (pid 3680) has died
D/ActivityManager( 799): cleanUpApplicationRecord -- 3680
W/OpenGLRenderer( 1690): Incorrectly called buildLayer on View: OverviewPanel, destroying layer...
I/Timeline( 1690): Timeline: Activity_launch_request id:org.mozilla.geckoview_example time:1176232441
I/ActivityManager( 799): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.mozilla.geckoview_example/.GeckoViewActivity (has extras)} from uid 10018 on display 0
V/WindowManager( 799): addAppToken: AppWindowToken{16e9b20c token=Token{1fc7e93f ActivityRecord{29fa815e u0 org.mozilla.geckoview_example/.GeckoViewActivity t98}}} to stack=1 task=98 at 0
V/WindowManager( 799): Adding window Window{1673c137 u0 Starting org.mozilla.geckoview_example} at 5 of 10 (after Window{1cfcb388 u0 com.android.settings/com.android.settings.SubSettings})
W/BroadcastQueue( 799): Permission Denial: broadcasting Intent { act=com.android.lau