Whitelist opengles2 headers for ppapi presubmit
The opengles2 interface headers are generated automatically by the command
buffer generator script, instead of the ppapi idl script.
So skip the .h <-> .idl matching for those.
BUG=None
Review URL: https://codereview.chromium.org/143903019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246482 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ppapi/PRESUBMIT.py b/ppapi/PRESUBMIT.py
index 46038fb..c5f8dd3 100644
--- a/ppapi/PRESUBMIT.py
+++ b/ppapi/PRESUBMIT.py
@@ -163,10 +163,16 @@
idl_files = []
generators_changed = False
+ # These are autogenerated by the command buffer generator, they don't go
+ # through idl.
+ whitelist = ['ppb_opengles2', 'ppb_opengles2ext_dev']
+
# Find all relevant .h and .idl files.
for filename in files:
name, ext = os.path.splitext(filename)
name_parts = name.split(os.sep)
+ if name_parts[-1] in whitelist:
+ continue
if name_parts[0:2] == ['ppapi', 'c'] and ext == '.h':
h_files.append('/'.join(name_parts[2:]))
elif name_parts[0:2] == ['ppapi', 'api'] and ext == '.idl':