From af82ea9dd4acbc75b7280fa8648a68651d876f68 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 26 Sep 2021 10:24:31 +0800 Subject: [PATCH] docs: chromium / golang commands --- doc/chromium.md | 9 +++++++++ doc/golang.md | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 doc/golang.md diff --git a/doc/chromium.md b/doc/chromium.md index 4c2bbd1..592f1d6 100644 --- a/doc/chromium.md +++ b/doc/chromium.md @@ -1,3 +1,4 @@ +# refer 1. install vaapi vdpau package: archlinux ```sh @@ -8,3 +9,11 @@ - chrome://flags/#enable-accelerated-video-decode 3. verification - chrome://gpu + +# references + +- [How To Enable Hardware Accelerated Video Decode In Google Chrome, Brave, Vivaldi And Opera Browsers On Debian, Ubuntu Or Linux Mint - Linux Uprising Blog](https://www.linuxuprising.com/2021/01/how-to-enable-hardware-accelerated.html) + +``` +google-chrome-stable --use-gl=desktop --enable-features=VaapiVideoDecoder +``` diff --git a/doc/golang.md b/doc/golang.md new file mode 100644 index 0000000..98a7dce --- /dev/null +++ b/doc/golang.md @@ -0,0 +1,6 @@ +# Debugging +- debug a specific test-case +```sh +dlv test --build-flags='path/to/module' -- -test.run ^TestFunctionName$ +``` +