Skip to content

Instantly share code, notes, and snippets.

ERROR at //gpu/command_buffer/service/dawn_platform.h:8:11: Can't include this header from here.
#include <dawn_platform/DawnPlatform.h>
^---------------------------
The target:
//gpu/command_buffer/service:gles2_sources
is including a file from the target:
//third_party/dawn:dawn_platform
It's usually best to depend directly on the destination target.
In some cases, the destination target is considered a subcomponent
ERROR at //garnet/bin/ui/root_presenter/a11y_settings_watcher.h:13:11: Include not allowed.
#include <lib/ui/scenic/cpp/id.h>
^---------------------
It is not in any dependency of
//garnet/bin/ui/root_presenter:accessibility
The include file is in the target(s):
//sdk/lib/ui/scenic/cpp:cpp
which should somehow be reachable.
___________________
ERROR at //garnet/bin/ui/root_presenter/a11y_settings_watcher.h:14:11: Include not allowed.
$ time ../../buildtools/linux-x64/clang/bin/clang++ -std=c++11 -c test.cc -o test.o -I ../../ -O2 -ftime-report
===-------------------------------------------------------------------------===
Miscellaneous Ungrouped Timers
===-------------------------------------------------------------------------===
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
320.9046 ( 99.9%) 1.2062 ( 98.0%) 322.1108 ( 99.8%) 322.1103 ( 99.8%) Code Generation Time
0.4728 ( 0.1%) 0.0252 ( 2.0%) 0.4980 ( 0.2%) 0.4994 ( 0.2%) LLVM IR Generation Time
321.3774 (100.0%) 1.2314 (100.0%) 322.6088 (100.0%) 322.6097 (100.0%) Total
===-------------------------------------------------------------------------===
Miscellaneous Ungrouped Timers
===-------------------------------------------------------------------------===
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
32.1140 ( 98.6%) 2.9441 ( 99.0%) 35.0581 ( 98.6%) 35.0583 ( 98.6%) Code Generation Time
0.4534 ( 1.4%) 0.0303 ( 1.0%) 0.4837 ( 1.4%) 0.4851 ( 1.4%) LLVM IR Generation Time
32.5674 (100.0%) 2.9745 (100.0%) 35.5418 (100.0%) 35.5435 (100.0%) Total
===-------------------------------------------------------------------------===
[00000.000] 00000.00000> bootdata: @ 0xffffff8008757000 (8030440 bytes)
[00000.000] 00000.00000>
[00000.000] 00000.00000> welcome to lk/MP
[00000.000] 00000.00000>
[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff80184660 (global_prng_seed) at level 0x30000, flags 0x1
[00000.000] 00000.00000> initializing vm pre-heap
[00000.000] 00000.00000> VM: marking boot alloc used range [0x290000, 0x11b2108)
[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff80139d60 (elf_build_id) at level 0x4fffe, flags 0x1
[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff80139ee4 (version) at level 0x4ffff, flags 0x1
[00000.000] 00000.00000> version:
$ pub get --verbosity=solver
Resolving dependencies...
Solving dependencies:
- watcher ^0.9.2 from hosted (watcher)
- package_config ^0.1.1 from hosted (package_config)
- args ^0.13.0 from hosted (args)
- crypto ^0.9.0 from hosted (crypto)
- http ^0.11.0 from hosted (http)
- barback ^0.15.2 from hosted (barback)
- pool ^1.0.0 from hosted (pool)
@jamesr
jamesr / bind_once.cc
Created September 18, 2015 22:57
C++14 one-shot bind for functions that take move-only parameters
#include <stdio.h>
#include <cstdlib>
#include <functional>
#include <memory>
#include <tuple>
#include <utility>
template<typename F, typename... Args>
class CallableOnce {
@jamesr
jamesr / gist:a92315eaf51d91141aef
Created August 28, 2015 21:00
cloc sky_engine, no DEPS
$ cloc .
8501 text files.
8164 unique files.
1512 files ignored.
http://cloc.sourceforge.net v 1.60 T=31.94 s (214.7 files/s, 53538.4 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
C++ 2365 82955 75758 424322
@jamesr
jamesr / gist:d066129f32086f60303a
Created August 28, 2015 20:56
sky_engine cloc report
$ cloc --exclude-dir=out .
119560 text files.
57117 unique files.
83749 files ignored.
http://cloc.sourceforge.net v 1.60 T=1044.38 s (42.5 files/s, 12633.4 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
C++ 10687 321272 310970 1984378
$ git diff -- gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 8a2fd40..263aa31 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -975,6 +975,7 @@ void FeatureInfo::InitializeFeatures() {
feature_flags_.chromium_sync_query = true;
}
+#if 0