Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small fixes
  • Loading branch information
dkwingsmt committed Dec 12, 2023
commit 29060e1d348c2196d77cff1612b5fe05036b7bc0
2 changes: 1 addition & 1 deletion examples/glfw/FlutterEmbedderGLFW.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
static double g_pixelRatio = 1.0;
static const size_t kInitialWindowWidth = 800;
static const size_t kInitialWindowHeight = 600;
static constexpr int64_t kImplicitViewId = 0;
static constexpr FlutterViewId kImplicitViewId = 0;

static_assert(FLUTTER_ENGINE_VERSION == 1,
"This Flutter Embedder was authored against the stable Flutter "
Expand Down
2 changes: 1 addition & 1 deletion examples/glfw_drm/FlutterEmbedderGLFW.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const size_t kInitialWindowHeight = 600;
// Maximum damage history - for triple buffering we need to store damage for
// last two frames; Some Android devices (Pixel 4) use quad buffering.
static const int kMaxHistorySize = 10;
static constexpr int64_t kImplicitViewId = 0;
static constexpr FlutterViewId kImplicitViewId = 0;

// Keeps track of the most recent frame damages so that existing damage can
// be easily computed.
Expand Down
9 changes: 9 additions & 0 deletions shell/platform/embedder/embedder.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ typedef enum {

typedef struct _FlutterEngine* FLUTTER_API_SYMBOL(FlutterEngine);

/// Identifier for views.
///
/// How view IDs are generated is decided by the embedding. The engine does not
/// assume any specifics about the generation algorithm, including whether it
/// utilizes the entire range of int64_t or permits the use of zero or negative
/// IDs. The only requirement is that at any given moment, no two views share
/// the same ID.
typedef int64_t FlutterViewId;

typedef struct {
/// horizontal scale factor
double scaleX;
Expand Down