Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Conversation

@clarkezone
Copy link
Contributor

@clarkezone clarkezone commented Aug 21, 2019

This change is WIP for the consumption of the following engine PR:

flutter/engine#11327

This PR shouldn't be accepted until native win32 is the default Windows embedder: flutter/flutter#39836

@clarkezone clarkezone changed the title Update example and testbed to use the native win32 Windows engine [Windows] Update example and testbed to use the native win32 Windows engine Aug 21, 2019
Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Started doing a review before belatedly realizing that this wasn't posted for review yet. Publishing them in case any of it is useful, but otherwise feel free to ignore and I'll review when it's actually ready.

#include "win32_window.h"
#include "shellscalingapi.h"

// the Windows DPI system is based on this
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anonymous namespace for this and the helper to give them internal linkage.

const unsigned int x,
const unsigned int y,
const unsigned int width,
const unsigned int height);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here about whether there are better types we could use.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I'm going to add a Point and Size to this class to make things a bit more self-documenting. Not an ideal solution, but we can easily iterate later.

@stuartmorgan-g
Copy link
Collaborator

Synced with master, fixed all the references to _glfw files. I'll do some more updates to address the remaining things (eliminating common, maybe adding some point/size classes for the APIs, etc.), but at this point applying this and flutter/flutter#39836 locally should work.

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed the remaining cleanup; this is good to land when the Flutter side lands!

@stuartmorgan-g stuartmorgan-g merged commit 1306acd into google:master Sep 5, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants