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  bool enable_shader_warmup() { return enable_shader_warmup_; }
22  return enable_shader_warmup_dart_hooks_;
23  }
24 
25  private:
26  fml::TimeDelta vsync_offset_ = fml::TimeDelta::Zero();
27  uint64_t max_frames_in_flight_ = 3;
28  bool intercept_all_input_ = false;
29  bool enable_shader_warmup_ = false;
30  bool enable_shader_warmup_dart_hooks_ = true;
31 };
32 
33 } // namespace flutter_runner
34 #endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_RUNNER_PRODUCT_CONFIGURATION_H_
static constexpr TimeDelta Zero()
Definition: time_delta.h:33
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57