This repository was archived by the owner on Feb 25, 2025. It is now read-only.
If the rasterizer has a valid surface context, use that to create a snapshotting render target.#4979
Merged
chinmaygarde merged 1 commit intoflutter:masterfrom Apr 13, 2018
Merged
Conversation
…napshotting render target.
Contributor
Author
jason-simmons
approved these changes
Apr 12, 2018
| frame->Raster(*tree, true); | ||
| canvas->flush(); | ||
|
|
||
| // Prepare an image from the surface, this image may potentially be on th GPU. |
cbracken
approved these changes
Apr 12, 2018
Member
Contributor
Author
|
Tree is green after the shell refactor. So I am assuming it stuck the landing this time. That unblocks this patch. |
Contributor
|
This has been identified as the culprit of a Windows crash on AppVeyor trying to roll this into flutter/flutter. https://ci.appveyor.com/project/flutter/flutter/build/1.0.11811 |
Contributor
|
Scratch that - sounds like the culprit may be a different PR |
Contributor
|
@chinmaygarde While trying to screenshot images, sometimes they do not render. This seems to address a similar issue. Perhaps they are related? Opened issue: flutter/flutter#17687 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fixes snapshotting of textures uploaded on the IO thread and resident only on the GPU. Does not fix snapshotting of scenes with external textures.
Fixes flutter/flutter#16412. The engine refactor removed all the various places the engine used to screenshot layer trees and moved them to a single spot on the rasterizer. This patch fixes that call to handle IO thread uploaded textures.