Skip to content

Instantly share code, notes, and snippets.

View tiagovignatti's full-sized avatar
🌱

Tiago Vignatti tiagovignatti

🌱
View GitHub Profile
@tiagovignatti
tiagovignatti / gist:9271138
Created February 28, 2014 13:29
that's my hack to compile Chromium Browser in a system with *zero* X11 protocol libraries.
diff --git a/build/config/linux/BUILD.gn b/build/config/linux/BUILD.gn
index 470922f..f778297 100644
--- a/build/config/linux/BUILD.gn
+++ b/build/config/linux/BUILD.gn
@@ -44,7 +44,7 @@ pkg_config("glib") {
pkg_config("gtk") {
# Gtk requires gmodule, but it does not list it as a dependency in some
# misconfigured systems.
- packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ]
+ packages = [ "gmodule-2.0", "gthread-2.0" ]
@tiagovignatti
tiagovignatti / gist:9271989
Created February 28, 2014 14:28
chromium: take khronos precedence over mesa
commit 50b3a5c210868f3d4cd3bd98c1d31d1f2f633cf9
Author: Tiago Vignatti <[email protected]>
Date: Fri Feb 28 16:15:00 2014 +0200
Prefer Khronos EGL headers instead Mesa for all OS
This patch change the order that gl target reads Mesa headers, giving
precedence to third_party/khronos over third_party/mesa/src/include.
BUG=266310
root@fisu:/home/tiago/git/chromium/src/out_kms/out/Debug# ./content_shell --no-sandbox --user-data-dir=/tmp/chrome --ozone-platform=dri
[21099:21099:0303/150540:427257024325:ERROR:audio_manager_pulse.cc(251)] Failed to connect to the context. Error: Connection refused
[21099:21099:0303/150540:427257059676:ERROR:window_tree_host_ozone.cc(49)] Not implemented reached in virtual void aura::WindowTreeHostOzone::Show()
[21099:21099:0303/150540:427257059726:ERROR:window_tree_host_ozone.cc(58)] Not implemented reached in virtual void aura::WindowTreeHostOzone::SetBounds(const gfx::Rect&)
[21118:21118:0303/150540:427257063993:ERROR:renderer_main.cc(224)] Running without renderer sandbox
[21099:21114:0303/150540:427257123868:WARNING:proxy_service.cc(903)] PAC support disabled because there is no system implementation
[21099:21110:0303/150541:427257150541:WARNING:event_factory_evdev.cc(65)] touchpad device not supported: /dev/input/event5
[21099:21110:0303/150541:427257188175:ERROR:event_device_info.cc(18)] failed EVI
root@fisu:/home/tiago/git/chromium/src/out_kms/out/Debug# ./content_shell --no-sandbox --user-data-dir=/tmp/chrome --ui-disable-threaded-compositing --disable-gpu --ozone-platform=dri
[23498:23498:0303/175424:437380963188:ERROR:window_tree_host_ozone.cc(49)] Not implemented reached in virtual void aura::WindowTreeHostOzone::Show()
[23498:23498:0303/175424:437380963342:ERROR:window_tree_host_ozone.cc(58)] Not implemented reached in virtual void aura::WindowTreeHostOzone::SetBounds(const gfx::Rect&)
[23514:23514:0303/175424:437380969073:ERROR:renderer_main.cc(224)] Running without renderer sandbox
[23498:23498:0303/175424:437380969418:ERROR:hardware_display_controller.cc(74)] Failed to register framebuffer: Invalid argument
[23498:23498:0303/175424:437380969516:ERROR:dri_surface_factory.cc(183)] Failed to bind surface to controller
[23498:23511:0303/175424:437381008116:WARNING:proxy_service.cc(903)] PAC support disabled because there is no system implementation
[23498:23507:0303/175424:437381056196:WARNING:even
root@fisu:/home/tiago/git/chromium/src/out/Debug# ./content_shell --no-sandbox --user-data-dir=/tmp/chrome --ui-disable-threaded-compositing --disable-gpu --ozone-platform=test
[17758:17758:0312/154441:180479470338:FATAL:event_factory_ozone_wayland.cc(23)] Check failed: impl_. No EventFactoryOzoneWayland implementation set.
[0x0000007987b4] base::debug::StackTrace::StackTrace()
[0x0000006dc1d5] logging::LogMessage::~LogMessage()
[0x0000013ed91c] ui::EventFactoryOzoneWayland::GetInstance()
[0x000004511d94] content::OzoneChannelHostFactory::OzoneChannelHostFactory()
[0x000004511c51] content::OzoneChannelHostFactory::Initialize()
[0x0000038485ab] content::BrowserMainLoop::BrowserThreadsStarted()
[0x00000384ca6e] base::internal::RunnableAdapter<>::Run()
[0x00000384c8f2] base::internal::InvokeHelper<>::MakeItSo()
tiago@fisu:~/git/crosswalk$ gclient sync
_____ src/xwalk at refs/remotes/origin/master
Syncing projects: 50% (1/2), done.xwalk
________ running '/usr/bin/python src/xwalk/tools/generate_gclient-xwalk.py' in '/home/tiago/git/crosswalk'
Place /home/tiago/git/crosswalk/.gclient-xwalk with solutions:
[{'url': 'http://src.chromium.org/svn/releases/34.0.1847.45', 'name': '34.0.1847.45', 'custom_deps': {'depot_tools': None, 'src/ozone': 'https://github.com/01org/ozone-wayland.git@39d93a66777395d5c9ca11da95c436b9192d9725', 'commit-queue': None, 'build/scripts/private/data/reliability': None, 'build/third_party/xvfb': None, 'src/third_party/chromite': None, 'src/chrome/tools/test/reference_build/chrome_win': None, 'src/content/test/data/layout_tests/LayoutTests': None, 'build/scripts/command_wrapper/bin': None, 'build/third_party/lighttpd': None, 'build': None, 'build/third_party/swarm_client': None, 'src/chrome/tools/test/reference_build/chrome_mac': None, 'src/webkit/data/layout_tests/LayoutTests': None, 'build/s
@tiagovignatti
tiagovignatti / chromium patch
Last active December 16, 2022 12:21
Chromium App Launcher support
From ffbaf37149ea3cdb4eb6a7be0368281d4cc67765 Mon Sep 17 00:00:00 2001
From: Tiago Vignatti <[email protected]>
Date: Mon, 17 Mar 2014 17:18:40 +0200
Subject: [PATCH] wip: Bubble shell thing
---
content/messages.h | 2 +-
.../desktop_window_tree_host_wayland.cc | 6 ++++++
ui/events/window_constants.h | 3 ++-
wayland/display.cc | 5 ++++-
asdf
@tiagovignatti
tiagovignatti / building and running
Last active June 18, 2017 21:09
Ozone DRM/KMS through Skia (CPU backend)
$ export GYP_DEFINES='embedded=1"
$ ./build/gyp_chromium
$ ninja -j16 -C out/Debug/ content_shell
$ ./out/Debug/content_shell --no-sandbox --ozone-platform=dri --ui-disable-threaded-compositing --disable-gpu
root@fisu:/home/tiago/git/chromium/src/out_kms/out/Debug# ./ui_unittests --gtest_filter=DriSurfaceFactoryTest.* --single-process-tests
Note: Google Test filter = DriSurfaceFactoryTest.*
[==========] Running 8 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 8 tests from DriSurfaceFactoryTest
[ RUN ] DriSurfaceFactoryTest.FailInitialization
[6336:6336:0325/164423:717735464585:ERROR:dri_surface_factory.cc(138)] Cannot open graphics card '/dev/dri/card0': No such file or directory
[ OK ] DriSurfaceFactoryTest.FailInitialization (0 ms)
[ RUN ] DriSurfaceFactoryTest.SuccessfulInitialization
[6336:6336:0325/164423:717735464780:ERROR:dri_skbitmap.cc(38)] Cannot create dumb buffer (25) Inappropriate ioctl for device