Skip to content

Instantly share code, notes, and snippets.

Dongseong Hwang ds-hwang

View GitHub Profile
View gist:d7970b049793778571b5
/*
* Copyright 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
@ds-hwang
ds-hwang / gist:7565587062a67de02ae2
Created Apr 8, 2015
drm intel crash: intel_do_flush_locked failed: Invalid argument
View gist:7565587062a67de02ae2
[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
View gist:254ee2314c038506f9b8
[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:8d6173b3ed43dff734e4
Created Mar 2, 2015
my yocto conf for chromium
View gist:8d6173b3ed43dff734e4
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 \
View gist:7ee43f9dffe3ba270be3
[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:63cedc82019320584a0d
Last active Aug 29, 2015
chromeos gbm error log
View gist:63cedc82019320584a0d
[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
View gist:ef031004e6443eebf2cd

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:26e765892240aeb6e56b
Last active Aug 29, 2015
Data and code to measure CopyTextureChromium vs CopyTexImage2D
View gist:26e765892240aeb6e56b
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
View gist:d3e62d7d4efc186736fb
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
View designer.html
<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>
You can’t perform that action at this time.