| 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 SkMiniRecorder_DEFINED | 8 #ifndef SkMiniRecorder_DEFINED |
| 9 #define SkMiniRecorder_DEFINED | 9 #define SkMiniRecorder_DEFINED |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 template <size_t A, size_t B> | 41 template <size_t A, size_t B> |
| 42 struct Max { static const size_t val = A > B ? A : B; }; | 42 struct Max { static const size_t val = A > B ? A : B; }; |
| 43 | 43 |
| 44 static const size_t kInlineStorage = Max<sizeof(SkRecords::DrawPath), | 44 static const size_t kInlineStorage = Max<sizeof(SkRecords::DrawPath), |
| 45 Max<sizeof(SkRecords::DrawRect), | 45 Max<sizeof(SkRecords::DrawRect), |
| 46 sizeof(SkRecords::DrawTextBlob)>::v
al>::val; | 46 sizeof(SkRecords::DrawTextBlob)>::v
al>::val; |
| 47 SkAlignedSStorage<kInlineStorage> fBuffer; | 47 SkAlignedSStorage<kInlineStorage> fBuffer; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 #endif//SkMiniRecorder_DEFINED | 50 #endif//SkMiniRecorder_DEFINED |
| OLD | NEW |