| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 def AlwaysWritten(self): | 145 def AlwaysWritten(self): |
| 146 assert self.is_output, self | 146 assert self.is_output, self |
| 147 self.is_always_written = True | 147 self.is_always_written = True |
| 148 return self | 148 return self |
| 149 | 149 |
| 150 def IsScalar(self): | 150 def IsScalar(self): |
| 151 return not self.is_array and not self.is_struct | 151 return not self.is_array and not self.is_struct |
| 152 | 152 |
| 153 def IsPassedByValue(self): | 153 def IsPassedByValue(self): |
| 154 return not self.is_output and self.IsScalar() | 154 return not self.is_output and self.IsScalar() |
| OLD | NEW |