summaryrefslogtreecommitdiff
path: root/chromium/gpu/command_buffer/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/gpu/command_buffer/PRESUBMIT.py')
-rw-r--r--chromium/gpu/command_buffer/PRESUBMIT.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/gpu/command_buffer/PRESUBMIT.py b/chromium/gpu/command_buffer/PRESUBMIT.py
index c1f484c8c6b..c3ddb2ccae7 100644
--- a/chromium/gpu/command_buffer/PRESUBMIT.py
+++ b/chromium/gpu/command_buffer/PRESUBMIT.py
@@ -10,8 +10,8 @@ for more details on the presubmit API built into depot_tools.
import os.path
-def _IsGLES2CmdBufferFile(file):
- filename = os.path.basename(file.LocalPath())
+def _IsGLES2CmdBufferFile(affected_file):
+ filename = os.path.basename(affected_file.LocalPath())
if filename in [
'build_cmd_buffer_lib.py', 'build_gles2_cmd_buffer.py',
'gles2_cmd_buffer_functions.txt', 'gl2.h', 'gl2ext.h', 'gl3.h', 'gl31.h',
@@ -24,8 +24,8 @@ def _IsGLES2CmdBufferFile(file):
filename.endswith('_autogen.h'))
-def _IsRasterCmdBufferFile(file):
- filename = os.path.basename(file.LocalPath())
+def _IsRasterCmdBufferFile(affected_file):
+ filename = os.path.basename(affected_file.LocalPath())
if filename in [
'build_cmd_buffer_lib.py', 'build_raster_cmd_buffer.py',
'raster_cmd_buffer_functions.txt'
@@ -35,8 +35,8 @@ def _IsRasterCmdBufferFile(file):
return filename.startswith('raster') and filename.endswith('_autogen.h')
-def _IsWebGPUCmdBufferFile(file):
- filename = os.path.basename(file.LocalPath())
+def _IsWebGPUCmdBufferFile(affected_file):
+ filename = os.path.basename(affected_file.LocalPath())
if filename in [
'build_cmd_buffer_lib.py', 'build_webgpu_cmd_buffer.py',
'webgpu_cmd_buffer_functions.txt'