Skip to content

Instantly share code, notes, and snippets.

View nickdiego's full-sized avatar

Nick Yamane nickdiego

View GitHub Profile
@nickdiego
nickdiego / 0001-wayland-debug-per-surface-scale-init-for-non-topleve.patch
Created July 4, 2024 22:52
Debugging per-surface scale init for non-toplevel surfaces
From f0439a6458e60daea0a2ea41979ac07b5008ce7d Mon Sep 17 00:00:00 2001
From: Nick Diego Yamane <[email protected]>
Date: Thu, 4 Jul 2024 19:49:10 -0300
Subject: [PATCH] wayland: debug per-surface scale init for non-toplevel
surfaces
Signed-off-by: Nick Diego Yamane <[email protected]>
---
ui/aura/window_tree_host_platform.cc | 7 +++++++
ui/ozone/platform/wayland/host/wayland_surface.cc | 2 ++

Finding out GN args used by CI/CQ bots

  • Bots use mb tool, which is actually a "thin" python script that stands for "Meta-Build wrapper". Detailed docs here.
  • Chromium builder configurations live at //tools/mb/mb_config.pyl file.

In order to find out, for example, the GN args used to build the official binaries of Lacros Chrome for amd64-generic boards, look for the builder group and builder name and pass them in to mb.py lookup scrip, as follows:

$ tools/mb/mb.py lookup --quiet -m tryserver.chrome -b lacros-amd64-generic-chrome
@nickdiego
nickdiego / webrtc-issue.md
Created November 30, 2021 04:15
Chromium WebRTC issue

VAAPI video decoding

  • GN arg: use_vaapi = true
  • Runtime args:
  --enable-features=UseOzonePlatform,VaapiVideoDecoder
  --ozone-platform={x11,wayland}
  --use-gl=egl
  --ignore-gpu-blocklist
 --vmodule='gpu_video*=1,vaapi*=10,interface_factory_impl=10'
---> datadir: /home/nick/projects/chromium/tmp/chr_tmp
Running cmd: env GDK_BACKEND=wayland out/release/ozone/chrome --enable-logging=stderr --no-sandbox --user-data-dir=/home/nick/projects/chromium/tmp/chr_tmp --ozone-platform=wayland --vmodule=wayland_window_drag_controller=1 file:///home file:///tmp
[1497536:1497536:0702/204313.106009:INFO:content_main_runner_impl.cc(992)] Chrome is running in full browser mode.
[3478583.671] -> [email protected]_registry(new id wl_registry@2)
[3478583.726] -> [email protected](new id wl_callback@3)
[3478583.879] [email protected]_id(3)
[3478583.903] [email protected](1, "wl_shm", 1)
[3478583.921] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[3478583.947] [email protected](2, "wl_drm", 2)
[3478583.960] -> [email protected](2, "wl_drm", 2, new id [unknown]@5)
[2292931.077] -> [email protected]_registry(new id wl_registry@2)
[2292931.110] -> [email protected](new id wl_callback@3)
[2292931.267] [email protected]_id(3)
[2292931.283] [email protected](1, "wl_shm", 1)
[2292931.295] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[2292931.359] -> [email protected]_pool(new id wl_shm_pool@5, fd 17, 2304)
[2292931.509] -> [email protected](8704)
[2292931.605] -> [email protected](21504)
[2292931.714] -> [email protected](47104)
[2292932.407] -> [email protected](98304)
➜ src git:(wayland-tab-drag) gclient sync -D
Syncing projects: 100% (125/125), done.
Running hooks: 52% (48/91) Fetch Android AFDO profile
________ running 'vpython src/tools/download_cros_provided_profile.py --newest_state=src/chrome/android/profiles/newest.txt --local_state=src/chrome/android/profiles/local.txt --output_name=src/chrome/android/profiles/afdo.prof --gs_url_base=chromeos-prebuilt/afdo-job/llvm' in '/home/nick/projects/chromium'
Traceback (most recent call last):
File "src/tools/download_cros_provided_profile.py", line 157, in <module>
sys.exit(main())
File "src/tools/download_cros_provided_profile.py", line 151, in main
RetrieveProfile(up_to_date_profile, new_tmpfile, args.gs_url_base)
File "src/tools/download_cros_provided_profile.py", line 80, in RetrieveProfile
This file has been truncated, but you can view the full file.
[739621:739621:0411/155608.838881:INFO:content_main_runner_impl.cc(976)] Chrome is running in full browser mode.
[1035256.127] -> [email protected]_registry(new id wl_registry@2)
[1035256.166] -> [email protected](new id wl_callback@3)
[1035256.257] [email protected]_id(3)
[1035256.277] [email protected](1, "wl_shm", 1)
[1035256.297] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[1035256.321] [email protected](2, "wl_drm", 2)
[1035256.333] -> [email protected](2, "wl_drm", 2, new id [unknown]@5)
[1035256.349] -> [email protected](new id wl_callback@6)
[1035256.359] [email protected](3, "zwp_linux_dmabuf_v1", 3)
[2325194.036] -> [email protected]_registry(new id wl_registry@2)
[2325194.064] -> [email protected](new id wl_callback@3)
[2325194.138] [email protected]_id(3)
[2325194.154] [email protected](1, "wl_shm", 1)
[2325194.172] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[2325194.224] -> [email protected]_pool(new id wl_shm_pool@5, fd 23, 2304)
[2325194.354] -> [email protected](8704)
[2325194.437] -> [email protected](21504)
[2325194.547] -> [email protected](47104)
[2325195.230] -> [email protected](98304)
[2418488.151] -> [email protected]_registry(new id wl_registry@2)
[2418488.201] -> [email protected](new id wl_callback@3)
[2418488.349] [email protected]_id(3)
[2418488.364] [email protected](1, "wl_shm", 1)
[2418488.382] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[2418488.440] -> [email protected]_pool(new id wl_shm_pool@5, fd 17, 2304)
[2418488.550] -> [email protected](8704)
[2418488.669] -> [email protected](21504)
[2418488.779] -> [email protected](47104)
[2418489.456] -> [email protected](98304)
[1551830.397] -> [email protected]_registry(new id wl_registry@2)
[1551830.429] -> [email protected](new id wl_callback@3)
[1551830.601] [email protected]_id(3)
[1551830.620] [email protected](1, "wl_shm", 1)
[1551830.634] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[1551830.679] -> [email protected]_pool(new id wl_shm_pool@5, fd 17, 2304)
[1551830.817] -> [email protected](6912)
[1551830.878] -> [email protected](16128)
[1551830.973] -> [email protected](34560)
[1551831.942] -> [email protected](71424)