Refactor gpu code generation
commita5535301ce813d9f709c4f7cee1f5d1bc975cb3f
authormartina.kollarova <martina.kollarova@intel.com>
Thu, 6 Aug 2015 08:19:44 +0000 (6 01:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 6 Aug 2015 08:20:34 +0000 (6 08:20 +0000)
treea4254ec6639a1176bd596ef11b0db948ff2f6e6a
parent9ea8ee354b50ab621ea663636c5fc7a91c8e3226
Refactor gpu code generation

Make CWriter and CHeaderWriter more pythonic - use the 'with' statement
to automatically close the file. The 'write' function now writes
directly into the file and not into a string.

Bug=None

Review URL: https://codereview.chromium.org/1265023002

Cr-Commit-Position: refs/heads/master@{#342077}
gpu/command_buffer/build_gles2_cmd_buffer.py