Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Macros
UniformOffsetCalculatorTest.cpp File Reference
#include "src/core/SkSLTypeShared.h"
#include "src/gpu/graphite/Uniform.h"
#include "src/gpu/graphite/UniformManager.h"
#include "tests/Test.h"

Go to the source code of this file.

Macros

#define EXPECT(type, expectedAlignment, expectedSize)
 
#define EXPECT_ARRAY(type, expectedAlignment, expectedStride, expectedSize)
 

Macro Definition Documentation

◆ EXPECT

#define EXPECT (   type,
  expectedAlignment,
  expectedSize 
)
Value:
do { \
auto [alignment, size] = calculate_alignment_and_size(kLayout, type); \
REPORTER_ASSERT(r, \
alignment == expectedAlignment, \
"incorrect alignment for type '%s': expected %d, found %zu", \
expectedAlignment, \
alignment); \
REPORTER_ASSERT(r, \
size == expectedSize, \
"incorrect size for type '%s': expected %d, found %zu", \
expectedSize, \
size); \
} while (0)
const char * SkSLTypeString(SkSLType t)

Definition at line 33 of file UniformOffsetCalculatorTest.cpp.

34 { \
35 auto [alignment, size] = calculate_alignment_and_size(kLayout, type); \
36 REPORTER_ASSERT(r, \
37 alignment == expectedAlignment, \
38 "incorrect alignment for type '%s': expected %d, found %zu", \
40 expectedAlignment, \
41 alignment); \
42 REPORTER_ASSERT(r, \
43 size == expectedSize, \
44 "incorrect size for type '%s': expected %d, found %zu", \
46 expectedSize, \
47 size); \
48 } while (0)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259

◆ EXPECT_ARRAY

#define EXPECT_ARRAY (   type,
  expectedAlignment,
  expectedStride,
  expectedSize 
)
Value:
do { \
auto [alignment, size] = calculate_alignment_and_size(kLayout, type, kCount); \
size_t stride = size / kCount; \
REPORTER_ASSERT(r, \
alignment == expectedAlignment, \
"incorrect alignment for type '%s': expected %d, found %zu", \
expectedAlignment, \
alignment); \
REPORTER_ASSERT(r, \
size == expectedSize, \
"incorrect size for type '%s': expected %d, found %zu", \
expectedSize, \
size); \
REPORTER_ASSERT(r, \
stride == expectedStride, \
"incorrect stride for type '%s': expected %d, found %zu", \
expectedStride, \
stride); \
} while (0)

Definition at line 50 of file UniformOffsetCalculatorTest.cpp.

51 { \
52 auto [alignment, size] = calculate_alignment_and_size(kLayout, type, kCount); \
53 size_t stride = size / kCount; \
54 REPORTER_ASSERT(r, \
55 alignment == expectedAlignment, \
56 "incorrect alignment for type '%s': expected %d, found %zu", \
58 expectedAlignment, \
59 alignment); \
60 REPORTER_ASSERT(r, \
61 size == expectedSize, \
62 "incorrect size for type '%s': expected %d, found %zu", \
64 expectedSize, \
65 size); \
66 REPORTER_ASSERT(r, \
67 stride == expectedStride, \
68 "incorrect stride for type '%s': expected %d, found %zu", \
70 expectedStride, \
71 stride); \
72 } while (0)