Home | History | Annotate | Download | only in tools

Lines Matching defs:out

41   out = args.output.write;
42 out('#include "SkTypes.h"\n')
47 out('static const uint8_t resource{0:d}[] SK_STRUCT_ALIGN({1:d}) = {{\n'
52 out(hex(b) + ',')
56 out('\n')
58 out('};\n')
59 out('static const size_t resource{0:d}_size = {1:d};\n'
64 out('struct SkEmbeddedResource { const uint8_t* d; const size_t s; };\n')
65 out('static const SkEmbeddedResource header[] = {\n')
68 out(' {{ resource{0:d}, resource{0:d}_size }},\n'.format(index))
70 out('};\n')
71 out('static const int header_count = {0:d};\n'.format(index))
74 out('struct SkEmbeddedHeader {const SkEmbeddedResource* e; const int c;};\n')
75 out('extern "C" const SkEmbeddedHeader {0:s} = {{ header, header_count }};\n'