Flutter Engine
flutter_runner_product_configuration.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_SHELL_PLATFORM_FUCHSIA_FLUTTER_RUNNER_PRODUCT_CONFIGURATION_H_
6 #define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_RUNNER_PRODUCT_CONFIGURATION_H_
7 
8 #include "flutter/fml/time/time_delta.h"
9 
10 namespace flutter_runner {
11 
13  public:
16 
17  fml::TimeDelta get_vsync_offset() { return vsync_offset_; }
18  uint64_t get_max_frames_in_flight() { return max_frames_in_flight_; }
19  bool get_intercept_all_input() { return intercept_all_input_; }
20 #if defined(LEGACY_FUCHSIA_EMBEDDER)
21  bool use_legacy_renderer() { return use_legacy_renderer_; }
22 #endif
23 
24  private:
25  fml::TimeDelta vsync_offset_ = fml::TimeDelta::Zero();
26  uint64_t max_frames_in_flight_ = 3;
27  bool intercept_all_input_ = false;
28 #if defined(LEGACY_FUCHSIA_EMBEDDER)
29  bool use_legacy_renderer_ = true;
30 #endif
31 };
32 
33 } // namespace flutter_runner
34 #endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_RUNNER_PRODUCT_CONFIGURATION_H_
DEF_SWITCHES_START snapshot asset path
Definition: switches.h:32
static constexpr TimeDelta Zero()
Definition: time_delta.h:33