| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 class Interface(object): | 5 class Interface(object): |
| 6 def __init__(self): | 6 def __init__(self): |
| 7 self.functions = [] | 7 self.functions = [] |
| 8 | 8 |
| 9 def Func(self, name, return_type): | 9 def Func(self, name, return_type): |
| 10 f = Function(self, len(self.functions), name, return_type) | 10 f = Function(self, len(self.functions), name, return_type) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 def AlwaysWritten(self): | 137 def AlwaysWritten(self): |
| 138 assert self.is_output, self | 138 assert self.is_output, self |
| 139 self.is_always_written = True | 139 self.is_always_written = True |
| 140 return self | 140 return self |
| 141 | 141 |
| 142 def IsScalar(self): | 142 def IsScalar(self): |
| 143 return not self.is_array and not self.is_struct | 143 return not self.is_array and not self.is_struct |
| 144 | 144 |
| 145 def IsPassedByValue(self): | 145 def IsPassedByValue(self): |
| 146 return not self.is_output and self.IsScalar() | 146 return not self.is_output and self.IsScalar() |
| OLD | NEW |