• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "flutter/lib/ui/window/pointer_data.h"
6 
7 #include <string.h>
8 
9 namespace flutter {
10 
11 // If this value changes, update the pointer data unpacking code in hooks.dart.
12 static constexpr int kPointerDataFieldCount = 24;
13 
14 static_assert(sizeof(PointerData) == sizeof(int64_t) * kPointerDataFieldCount,
15               "PointerData has the wrong size");
16 
Clear()17 void PointerData::Clear() {
18   memset(this, 0, sizeof(PointerData));
19 }
20 
21 }  // namespace flutter
22