| Flutter Impeller |

platform.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_CORE_PLATFORM_H_
6 #define FLUTTER_IMPELLER_CORE_PLATFORM_H_
7
8 #include <cstddef>
9
10 #include "flutter/fml/build_config.h"
11
12 namespace impeller {
13
14 constexpr size_t DefaultUniformAlignment() {
15 #if FML_OS_IOS && !TARGET_OS_SIMULATOR
16 return 16u;
17 #else
18 return 256u;
19 #endif
20 }
21
22 } // namespace impeller
23
24 #endif // FLUTTER_IMPELLER_CORE_PLATFORM_H_
impeller::DefaultUniformAlignment
constexpr size_t DefaultUniformAlignment()
Definition: platform.h:14
impeller
Definition: aiks_blend_unittests.cc:18