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

Conversation

@chinmaygarde
Copy link
Member

Unlike the prototype, the offscreen rendering is managed at the platform agnostic layer. This version is also able to survive context loss and resizes.

If the surface supports SRGB (determined via platform specific checks), rendering canvas will be backed by a surface that wraps the platform FBO. If not, an offscreen surface will be created and a copy performed onscreen per present.

I still have to fix the following but this patch is good for review:

  • The stencil counts are not communicated to the surface that wraps the platform FBO.
  • The check specified in this patch needs to be performed and the appropriate paint specified.

Copy link
Member

@jason-simmons jason-simmons left a comment

Choose a reason for hiding this comment

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

LGTM

}

if (!onscreen_surface_supports_sgrb_) {
// Because the surface did not support SRGB, we rendered offscreen surface.
Copy link
Member

Choose a reason for hiding this comment

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

rendered to an offscreen surface

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.

Copy link
Contributor

@brianosman brianosman left a comment

Choose a reason for hiding this comment

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

lgtm

@chinmaygarde chinmaygarde merged commit ddaa125 into flutter:master Jul 28, 2017
@chinmaygarde chinmaygarde deleted the color branch July 28, 2017 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants