Skip to content

Instantly share code, notes, and snippets.

View tiagovignatti's full-sized avatar
🌱

Tiago Vignatti tiagovignatti

🌱
View GitHub Profile
diff --git a/platform/ozone_platform_wayland.cc b/platform/ozone_platform_wayland.cc
index a0bc70e..34e73f3 100644
--- a/platform/ozone_platform_wayland.cc
+++ b/platform/ozone_platform_wayland.cc
@@ -4,6 +4,7 @@
#include "ozone/platform/ozone_platform_wayland.h"
+#include "media/ozone/ozone_platform.h"
#include "ozone/ui/cursor/cursor_factory_ozone_wayland.h"
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 56a24f7..b2c930d 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -879,7 +879,8 @@ void BrowserMainLoop::ShutdownThreadsAndCleanUp() {
if (BrowserGpuChannelHostFactory::instance())
BrowserGpuChannelHostFactory::Terminate();
-#if defined(USE_OZONE)
+#if 0
@tiagovignatti
tiagovignatti / gist:10881009
Created April 16, 2014 14:05
chromium and ozone-wayland patches organization
tiago@fisu:~/git/chromium/src$ git rev-parse --abbrev-ref HEAD
master-ozone
tiago@fisu:~/git/chromium/src$ git log --pretty=oneline -5
423d87a2a35eeb0dba9c965b29e1e78b0e24d1f0 OzoneChannel: Add needed support in Content.
f1305f2d861e537fdfe20b95b3724d3deb2c3c5b Add support to provide external ozone files in views.
c8ceae0bfbaa8c3f753a9600e7d23e142749c26a EGL specific changes for Wayland.
65e0719a9c0e3cbbb5a7e966515bda4bd11c1b3d browser: Support Desktop Aura creation on Ozone
b0d5d7e2620dc95df15cea76e873e25f542bef39 SVN changes up to revision 262376
tiago@fisu:~/git/chromium/src$ cd ozone/
tiago@fisu:~/git/chromium/src/ozone$ git rev-parse --abbrev-ref HEAD
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
@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
asdf
@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 ++++-
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
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()
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