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

Conversation

@chinmaygarde
Copy link
Member

@chinmaygarde chinmaygarde commented May 16, 2022

This is still work in progress but basic rendering is functional. There are issues around context access from multiple threads that I am going to address in a subsequent patch. This also brings in the binary cost overhead of using Impeller on Android.
screen

std::optional<bool> DetermineIfES(const std::string& version) {
if (HasPrefix(version, "OpenGL ES")) {
return true;
} else if (HasPrefix(version, "OpenGL")) {
Copy link
Member

Choose a reason for hiding this comment

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

This case looks redundant with the else {} case.

Copy link
Member Author

Choose a reason for hiding this comment

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

So, I am not actually sure if the OpenGL prefix is required. I seemed to think it was. But the Mac desktop implementation does not seem to have it. The else below this was supposed to be std::nullopt. Notice how the bool is optional but a value is always returned. I am going to assume the Mac desktop behavior is correct and return a non-optional for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

}
}

static std::optional<Version> DetermineVersion(std::string version) {
Copy link
Member

Choose a reason for hiding this comment

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

Can this have some unit tests? String parsing without unit tests makes me very nervous.

Copy link
Contributor

Choose a reason for hiding this comment

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

(seconded)

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding this in a followup patch along with other fixes.

@chinmaygarde chinmaygarde force-pushed the android_impeller branch 2 times, most recently from d8ab012 to 4c77bb9 Compare May 17, 2022 00:48
"gpu_surface_gl_skia.cc",
"gpu_surface_gl_skia.h",
Copy link
Contributor

Choose a reason for hiding this comment

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

not a problem but will require compensating changes for the roll.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

I didn't give this whole patch a close look, but from what I've spot checked it looks good enough to land for experimentation.

@zanderso
Copy link
Member

@zanderso
Copy link
Member

@jonahwilliams for advice on 'fractional' build failure. Maybe just needs a rebase?

@jonahwilliams
Copy link
Contributor

You might just need 9867003

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants