| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkFunction_DEFINED | 8 #ifndef SkFunction_DEFINED |
| 9 #define SkFunction_DEFINED | 9 #define SkFunction_DEFINED |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 R call(Args... args) const override { return fFn(Forward(args)...); } | 66 R call(Args... args) const override { return fFn(Forward(args)...); } |
| 67 Interface* clone() const { return SkNEW_ARGS(FnPtrImpl, (fFn)); } | 67 Interface* clone() const { return SkNEW_ARGS(FnPtrImpl, (fFn)); } |
| 68 private: | 68 private: |
| 69 R (*fFn)(Args...); | 69 R (*fFn)(Args...); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 SkAutoTDelete<Interface> fFunction; | 72 SkAutoTDelete<Interface> fFunction; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 #endif//SkFunction_DEFINED | 75 #endif//SkFunction_DEFINED |
| OLD | NEW |