Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Issue 2036023003: Script to inline shader into C header file (Closed)

Created:
4 years, 6 months ago by Yuwei
Modified:
4 years, 6 months ago
Reviewers:
Lambros, Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Script to inline shader into C header file OpenGL compiles shader code as text at runtime. It is inconvienent to edit shader code as const char[] inside the C++ source code. This CL contains script that reads file contents, turns them into const char[], and combine them into a header file. BUG=385924 Committed: https://crrev.com/26219410e3069f9cff75c5c487d2fc2d52f8ef4d Cr-Commit-Position: refs/heads/master@{#398142}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed Comments #

Total comments: 17

Patch Set 3 : Reviewer's Feedback #

Patch Set 4 : Renamed script to shader_to_header #

Total comments: 8

Patch Set 5 : Reviewer's Feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -0 lines) Patch
A remoting/client/opengl/BUILD.gn View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A remoting/tools/build/shader_to_header.py View 1 2 3 4 1 chunk +96 lines, -0 lines 1 comment Download

Messages

Total messages: 21 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036023003/1
4 years, 6 months ago (2016-06-03 23:22:11 UTC) #2
Yuwei
PTAL:)
4 years, 6 months ago (2016-06-03 23:24:57 UTC) #4
Yuwei
https://codereview.chromium.org/2036023003/diff/1/remoting/client/opengl/BUILD.gn File remoting/client/opengl/BUILD.gn (right): https://codereview.chromium.org/2036023003/diff/1/remoting/client/opengl/BUILD.gn#newcode1 remoting/client/opengl/BUILD.gn:1: shaders = [ This is how the script will ...
4 years, 6 months ago (2016-06-03 23:33:00 UTC) #5
Yuwei
Just fixed the comments...
4 years, 6 months ago (2016-06-04 00:02:17 UTC) #6
Jamie
https://codereview.chromium.org/2036023003/diff/20001/remoting/client/opengl/BUILD.gn File remoting/client/opengl/BUILD.gn (right): https://codereview.chromium.org/2036023003/diff/20001/remoting/client/opengl/BUILD.gn#newcode7 remoting/client/opengl/BUILD.gn:7: script = "../../tools/build/remoting_c_text_inliner.py" I think the script name would ...
4 years, 6 months ago (2016-06-04 00:24:38 UTC) #7
Yuwei
https://codereview.chromium.org/2036023003/diff/20001/remoting/client/opengl/BUILD.gn File remoting/client/opengl/BUILD.gn (right): https://codereview.chromium.org/2036023003/diff/20001/remoting/client/opengl/BUILD.gn#newcode10 remoting/client/opengl/BUILD.gn:10: include_guard = "REMOTING_CLIENT_OPENGL_SHADERS_H_" On 2016/06/04 00:24:37, Jamie wrote: > ...
4 years, 6 months ago (2016-06-04 00:37:07 UTC) #8
Yuwei
PTAL https://codereview.chromium.org/2036023003/diff/20001/remoting/client/opengl/BUILD.gn File remoting/client/opengl/BUILD.gn (right): https://codereview.chromium.org/2036023003/diff/20001/remoting/client/opengl/BUILD.gn#newcode7 remoting/client/opengl/BUILD.gn:7: script = "../../tools/build/remoting_c_text_inliner.py" On 2016/06/04 00:24:37, Jamie wrote: ...
4 years, 6 months ago (2016-06-04 01:31:42 UTC) #9
Jamie
https://codereview.chromium.org/2036023003/diff/60001/remoting/tools/build/shader_to_header.py File remoting/tools/build/shader_to_header.py (right): https://codereview.chromium.org/2036023003/diff/60001/remoting/tools/build/shader_to_header.py#newcode10 remoting/tools/build/shader_to_header.py:10: Input File in_a.vert: s/File/file/ https://codereview.chromium.org/2036023003/diff/60001/remoting/tools/build/shader_to_header.py#newcode15 remoting/tools/build/shader_to_header.py:15: Output File in_b.frag: ...
4 years, 6 months ago (2016-06-06 20:03:48 UTC) #10
Yuwei
PTAL https://codereview.chromium.org/2036023003/diff/60001/remoting/tools/build/shader_to_header.py File remoting/tools/build/shader_to_header.py (right): https://codereview.chromium.org/2036023003/diff/60001/remoting/tools/build/shader_to_header.py#newcode10 remoting/tools/build/shader_to_header.py:10: Input File in_a.vert: On 2016/06/06 20:03:48, Jamie wrote: ...
4 years, 6 months ago (2016-06-06 20:35:39 UTC) #11
Jamie
lgtm
4 years, 6 months ago (2016-06-06 20:42:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036023003/80001
4 years, 6 months ago (2016-06-06 20:49:58 UTC) #14
Lambros
https://codereview.chromium.org/2036023003/diff/80001/remoting/tools/build/shader_to_header.py File remoting/tools/build/shader_to_header.py (right): https://codereview.chromium.org/2036023003/diff/80001/remoting/tools/build/shader_to_header.py#newcode45 remoting/tools/build/shader_to_header.py:45: return ''.join(random.choice(STRING_CHARACTERS) drive-by: How much do we trust Python's ...
4 years, 6 months ago (2016-06-06 21:17:46 UTC) #16
Yuwei
On 2016/06/06 21:17:46, Lambros wrote: > https://codereview.chromium.org/2036023003/diff/80001/remoting/tools/build/shader_to_header.py > File remoting/tools/build/shader_to_header.py (right): > > https://codereview.chromium.org/2036023003/diff/80001/remoting/tools/build/shader_to_header.py#newcode45 > ...
4 years, 6 months ago (2016-06-06 21:43:24 UTC) #17
Lambros
On 2016/06/06 21:43:24, Yuwei wrote: > On 2016/06/06 21:17:46, Lambros wrote: > > > https://codereview.chromium.org/2036023003/diff/80001/remoting/tools/build/shader_to_header.py ...
4 years, 6 months ago (2016-06-06 21:51:04 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-06 22:28:43 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 22:31:25 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/26219410e3069f9cff75c5c487d2fc2d52f8ef4d
Cr-Commit-Position: refs/heads/master@{#398142}

Powered by Google App Engine
This is Rietveld 408576698