Skip to content

Instantly share code, notes, and snippets.

View tiagovignatti's full-sized avatar

Tiago Vignatti tiagovignatti

View GitHub Profile
diff --git a/content/browser/aura/gpu_process_transport_factory.cc b/content/browser/aura/gpu_process_transport_factory.cc
index 2d09b24..43173d9 100644
--- a/content/browser/aura/gpu_process_transport_factory.cc
+++ b/content/browser/aura/gpu_process_transport_factory.cc
@@ -435,8 +435,10 @@ GpuProcessTransportFactory::SharedMainThreadContextProvider() {
base::Bind(&GpuProcessTransportFactory::
OnLostMainThreadSharedContextInsideCallback,
callback_factory_.GetWeakPtr()));
- if (!shared_main_thread_contexts_->BindToCurrentThread())
+ if (!shared_main_thread_contexts_->BindToCurrentThread()) {
commit 0a7b787286722ae0b50a358000d6031eeff7ba34
Author: Tiago Vignatti <tiago.vignatti@intel.com>
Date: Mon Oct 14 17:19:07 2013 +0300
Revert "Track upstream changes."
This reverts commit 14c1f41dcc7704f9de58bf9bd9c634c51e31a517.
---
impl/desktop_root_window_host_wayland.cc | 2 ++
1 file changed, 2 insertions(+)
[1108/170223:INFO:desktop_factory_wayland.cc(13)] Ozone: DesktopFactoryWayland
LaunchProcess: failed to execvp:
/home/ander/chrome-wayland-0.0.1/nacl_helper
[16283:16283:1108/170223:ERROR:nacl_fork_delegate_linux.cc(221)] Bad NaCl helper startup ack (0 bytes)
[16280:16280:1108/170223:ERROR:gpu_info_collector_ozone.cc(28)] Not implemented reached in bool gpu::CollectDriverInfoGL(gpu::GPUInfo*)
[1108/170223:INFO:desktop_factory_wayland.cc(13)] Ozone: DesktopFactoryWayland
[16306:16306:1108/170223:ERROR:sandbox_linux.cc(142)] InitializeSandbox() called with multiple threads in process gpu-process
[16280:16280:1108/170223:ERROR:desktop_root_window_host_wayland.cc(455)] Not implemented reached in virtual void ozonewayland::DesktopRootWindowHostWayland::InitModalType(ui::ModalType)
[16280:16280:1108/170223:ERROR:desktop_root_window_host_wayland.cc(472)] Not implemented reached in virtual void ozonewayland::DesktopRootWindowHostWayland::OnNativeWidgetFocus()
[16280:16280:1108/170223:ERROR:desktop_root_window_host_wa
________ 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
@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 <tiago.vignatti@intel.com>
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
@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 <tiago.vignatti@intel.com>
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: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: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 / 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
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: