Skip to content

Instantly share code, notes, and snippets.

View tiagovignatti's full-sized avatar
🌱

Tiago Vignatti tiagovignatti

🌱
View GitHub Profile
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
@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
@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" ]
tiago@fisu:~/git/chromium/src$ export GYP_DEFINES='component=static_library use_ash=0 use_aura=1 chromeos=0 use_ozone=1 remove_webcore_debug_symbols=1'
tiago@fisu:~/git/chromium/src$ ./build/gyp_chromium
Generating gyp files from GN...
ERROR at //build/config/linux/pkg_config.gni:31:17: Script returned non-zero exit code.
pkgresult = exec_script("//build/config/linux/pkg-config.py",
^----------
Current dir: /home/tiago/git/chromium/src/out/gn_build.Release/
Command: python /home/tiago/git/chromium/src/build/config/linux/pkg-config.py gmodule-2.0 gtk+-2.0 gthread-2.0
Returned 1 and printed out:
@tiagovignatti
tiagovignatti / chromium
Last active January 4, 2016 02:58
flush Wayland after eglSwapBuffers
tiago@fisu:~/git/chromium/src$ git diff
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index ae5cb68..867246f 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -403,6 +403,8 @@ bool NativeViewGLSurfaceEGL::SwapBuffers() {
<< GetLastEGLErrorString();
return false;
}
+ // XXX: borrowing SchedulePageFlip as a SwapBuffers handler
@tiagovignatti
tiagovignatti / gist:7776322
Created December 3, 2013 19:52
circumvent the --single-process issue
tiago@fisu:~/git/chromium/src/ozone$ git diff
diff --git a/impl/ozone_display.cc b/impl/ozone_display.cc
index 7a07959..7697323 100644
--- a/impl/ozone_display.cc
+++ b/impl/ozone_display.cc
@@ -20,6 +20,10 @@
#include "base/native_library.h"
#include "content/child/child_process.h"
+#include "base/command_line.h"
@tiagovignatti
tiagovignatti / gist:7708305
Created November 29, 2013 16:32
open content_shell and click right-button in the address bar; 100% reproducible. I'm running with --single-process.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe4a12700 (LWP 17695)]
0x0000000000fdd182 in ozonewayland::WaylandShellSurface::Surface (this=0x0) at ../../ozone/wayland/shell_surface.h:25
25 WaylandSurface* Surface() const { return surface_; }
(gdb) bt
#0 0x0000000000fdd182 in ozonewayland::WaylandShellSurface::Surface (this=0x0) at ../../ozone/wayland/shell_surface.h:25
#1 0x0000000000fdcf7d in ozonewayland::WaylandWindow::RealizeAcceleratedWidget (this=0xc3f8c7a560) at ../../ozone/wayland/window.cc:84
#2 0x0000000000fca45b in ozonewayland::OzoneDisplay::RealizeAcceleratedWidget (this=0x7ffff0fa05c8, w=2) at ../../ozone/impl/ozone_display.cc:125
#3 0x0000000003e865d1 in gfx::GLSurface::CreateViewGLSurface (window=2) at ../../ui/gl/gl_surface_egl.cc:733
#4 0x00000000039f11e8 in content::ImageTransportSurface::CreateNativeSurface (manager=0xc3f6d37a20, stub=0xc3f84eafe0, handle=...)
@tiagovignatti
tiagovignatti / gist:7599967
Created November 22, 2013 13:38
[PATCH] WIP: Chromium: failed attempt to DRWHWayland derive DesktopRootWindowHostOzone
From fa33786ca0fd9a30b650b171f6f50b3888f8608c Mon Sep 17 00:00:00 2001
From: Tiago Vignatti <[email protected]>
Date: Fri, 22 Nov 2013 11:36:33 -0200
Subject: [PATCH] WIP: Chromium: failed attempt to DRWHWayland derive
DesktopRootWindowHostOzone
---
.../browser_desktop_root_window_host_ozone.cc | 16 +-
.../frame/browser_desktop_root_window_host_ozone.h | 9 +-
ui/views/views.gyp | 1 +
@tiagovignatti
tiagovignatti / gist:7377907
Created November 8, 2013 21:24
[PATCH] WIP: Multi root window dispatcher support
From 96f1a1003f89d33b8335f9b35c601d074b931d75 Mon Sep 17 00:00:00 2001
From: Tiago Vignatti <[email protected]>
Date: Fri, 8 Nov 2013 18:27:48 -0200
Subject: [PATCH] WIP: Multi root window dispatcher support
---
base/message_loop/message_pump_ozone.cc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/base/message_loop/message_pump_ozone.cc b/base/message_loop/message_pump_ozone.cc
________ running 'download_from_google_storage --platform=win32 --directory --bucket chromium-gn src/tools/gn/bin/win' in '/home/tiago/git/chromium'
The current platform doesn't match "win32", skipping.
________ running 'download_from_google_storage --platform="linux*" --directory --bucket chromium-gn src/tools/gn/bin/linux' in '/home/tiago/git/chromium'
The current platform doesn't match ""linux*"", skipping.
________ running '/usr/bin/python src/build/gyp_chromium' in '/home/tiago/git/chromium'
Updating projects from gyp files...
Hook '/usr/bin/python src/build/gyp_chromium' took 19.87 secs