vulkan: add SkExecutor used by skia to execute some CPU tasks
With this executor, skia will off some CPU works (computing draw path,
releasing vk resource, etc) from GPU main thread to background threads.
Bug: None
Change-Id: Iac3f235cb17e7896edd432d205a3bb7ab9cf8a0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2240132
Commit-Queue: Peng Huang <[email protected]>
Reviewed-by: Brian Salomon <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#777434}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index f78b8eec..d7985f77 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -1823,6 +1823,11 @@
match has been found and the additional text passed as |message| in case the
target type name matches the text inside the line passed as parameter.
"""
+ result = []
+
+ if line.endswith(" nocheck"):
+ return result
+
matched = False
if type_name[0:1] == '/':
regex = type_name[1:]
@@ -1831,7 +1836,6 @@
elif type_name in line:
matched = True
- result = []
if matched:
result.append(' %s:%d:' % (affected_file.LocalPath(), line_number))
for message_line in message: