Skip to content

Instantly share code, notes, and snippets.

View ds-hwang's full-sized avatar

Dongseong Hwang ds-hwang

View GitHub Profile
@ds-hwang
ds-hwang / gist:9638319
Created March 19, 2014 09:23
icecc gcc
diff --git a/build/common.gypi b/build/common.gypi
index 03ec5df..2b4c302 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3109,7 +3109,7 @@
}],
# http://gcc.gnu.org/wiki/DebugFission
# Requires gold and gcc >= 4.8 or clang.
- ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and binutils_version>=223', {
+ ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=49) and binutils_version>=223', {
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
</style>
export GYP_GENERATOR_FLAGS="output_dir=out_android"
export GYP_DEFINES='werror= dcheck_always_on=1 OS=android fastbuild=1 clang=1 component=shared_library'
ninja -C out_android/Release $option chrome_shell_apk libwebviewchromium android_webview_apk content_shell_apk blink_tests
@ds-hwang
ds-hwang / gist:26e765892240aeb6e56b
Last active August 29, 2015 14:03
Data and code to measure CopyTextureChromium vs CopyTexImage2D
Measure time of coping texture by 1000x times between CopyTextureChromium (i.e. GL Drawing) and CopyTexImage2D
Linux (Intel IvyBridge i7-3520M)
GL Drawing TexImage2D
14060 5107
14110 5568
14837 5614
14963 5636
14997 5713
15015 5726

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
Ctrl+` python console
Ctrl+N new file

Editing

@ds-hwang
ds-hwang / gist:63cedc82019320584a0d
Last active August 29, 2015 14:15
chromeos gbm error log
[29053:29053:0217/122136:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Failed to create secure directory (/run/user/1000/pulse): Permission denied
[29053:29053:0217/122136:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
[29053:29064:0217/122136:ERROR:owner_key_util_impl.cc(27)] Could not get size of /home/dshwang/.config/chromium/stub_owner.key
[29053:29053:0217/122136:ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/*
LaunchProcess: failed to execvp:
[29053:29061:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event2: Permission denied
[29053:29062:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event8: Permission denied
[29053:29061:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event0: Perm
@ds-hwang
ds-hwang / gist:7ee43f9dffe3ba270be3
Created February 17, 2015 10:32
embedded gbm error log
[29199:29199:0217/122203:325687003945:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[29199:29199:0217/122203:325687012361:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
[29199:29206:0217/122203:325687061119:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event2: Permission denied
[29199:29206:0217/122203:325687061279:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event8: Permission denied
[29199:29206:0217/122203:325687061299:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event0: Permission denied
[29199:29206:0217/122203:325687061315:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event1: Permission denied
[29199:29206:0217/122203:325687061331:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event6: Permissio
@ds-hwang
ds-hwang / gist:8d6173b3ed43dff734e4
Created March 2, 2015 08:14
my yocto conf for chromium
diff --git a/bblayers.conf b/bblayers.conf
index 4513d30..1ef46c7 100644
--- a/bblayers.conf
+++ b/bblayers.conf
@@ -9,6 +9,9 @@ BBLAYERS ?= " \
/d/workspace/yocto/poky/meta \
/d/workspace/yocto/poky/meta-yocto \
/d/workspace/yocto/poky/meta-yocto-bsp \
+ /d/workspace/yocto/meta-browser \
+ /d/workspace/yocto/meta-openembedded/meta-oe \
[8280:8280:0330/193141:281075820668:ERROR:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[8280:8280:0330/193141:281075877604:ERROR:proxy_service.cc(1456)] ProxyConfigService for ChromeOS should be created in profile_io_data.cc::CreateProxyConfigService and this should be used only for examples.
[8292:8292:0330/193141:281076237556:ERROR:gpu_lock.cc(22)] Failed to open lock file '/run/frecon': No such file or directory
[8292:8292:0330/193142:281076393394:ERROR:gl_context_egl.cc(194)] eglSwapInterval failed with error EGL_SUCCESS
[8310:8310:0330/193142:281076443675:ERROR:renderer_main.cc(200)] Running without renderer sandbox
[8320:8320:0330/193142:281076645316:ERROR:renderer_main.cc(200)] Running without renderer sandbox
[8280:8288:0330/193142:281076662865:WARNING:backend_impl.cc(1778)] Destroying invalid entry.
bo_create: buf 57 (chromium-gpu-memory-buffer) 262144b
bo_cr
@ds-hwang
ds-hwang / gist:7565587062a67de02ae2
Created April 8, 2015 11:26
drm intel crash: intel_do_flush_locked failed: Invalid argument
[4256:4256:0408/131841:10978434736:ERROR:browser_main_loop.cc(172)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[4256:4268:0408/131841:10978454212:ERROR:gpu_lock.cc(22)] Failed to open lock file '/run/frecon': No such file or directory
[4256:4256:0408/131841:10978494344:ERROR:proxy_service.cc(1506)] ProxyConfigService for ChromeOS should be created in profile_io_data.cc::CreateProxyConfigService and this should be used only for examples.
[4256:4256:0408/131841:10978497602:ERROR:fake_shill_device_client.cc(34)] Shill Error for: /device/cellular1: org.chromium.flimflam.Error.InvalidArguments : Failed
[4256:4268:0408/131841:10978606928:ERROR:gl_context_egl.cc(194)] eglSwapInterval failed with error EGL_SUCCESS
[4280:4280:0408/131842:10978943307:ERROR:renderer_main.cc(200)] Running without renderer sandbox
[4289:4289:0408/131842:10979147344:ERROR:renderer_main.cc(200)] Running without renderer san