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 #include "flutter/fml/macros.h"
12 
13 namespace impeller {
14 
15 constexpr size_t DefaultUniformAlignment() {
16 #if FML_OS_IOS && !TARGET_OS_SIMULATOR
17  return 16u;
18 #else
19  return 256u;
20 #endif
21 }
22 
23 } // namespace impeller
24 
25 #endif // FLUTTER_IMPELLER_CORE_PLATFORM_H_
impeller::DefaultUniformAlignment
constexpr size_t DefaultUniformAlignment()
Definition: platform.h:15
impeller
Definition: aiks_blur_unittests.cc:20