Skip to content

Drawer shadow flashes when drawer appears #5231

Closed

Description

@eseidelGoogle

[✓] Flutter (on Linux, channel master)
• Flutter at /src/flutter
• Framework revision 92d0445 (43 minutes ago), engine revision 603b070

[✓] Android toolchain - develop for Android devices (Android SDK 23.0.1)
• Android SDK at /usr/local/google/home/eseidel/Android/Sdk
• Platform android-23, build-tools 23.0.1
• OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)

[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.2
• dartlang plugin version 0.6.22

See video
https://youtu.be/sK7XSPdNzHo

Activity

  1. added
    p: material_uimaterial_ui package in flutter/packages
    customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.
    on Aug 4, 2016
  2. eseidelGoogle commented on Aug 5, 2016

    @eseidelGoogle
    ContributorAuthor

    @abarth says this is the same root bug as #5203 and is a bug in Skia that the returned bounds rect for shadows is wrong. We need to make a reduced test case and file.

  3. added this to the August milestone on Aug 11, 2016
  4. eseidelGoogle commented on Aug 11, 2016

    @eseidelGoogle
    ContributorAuthor

    @chinmaygarde can you take on the task of making a reduction for Skia? I want to make sure that we get this on Skia's radar ASAP as I've had at least one person point this out to me when demoing flutter gallery to them.

  5. self-assigned this
    on Aug 11, 2016
  6. chinmaygarde commented on Aug 22, 2016

    @chinmaygarde
    Contributor

    Sorry it took so long for this one. Went on a wild goose chase looking in Skia and the framework. Its the raster cache not accounting for the shadow. Skia is fine.

  7. chinmaygarde commented on Aug 22, 2016

    @chinmaygarde
    Contributor

    We aren't suggesting that the cullRect of the SkPicture should include any extensions introduced to shapes as a result of the filters applied on the paints that were used at the time of the draw of said shapes on the canvas are we? Seems like a pretty invasive change.

  8. eseidelGoogle commented on Aug 22, 2016

    @eseidelGoogle
    ContributorAuthor

    @chinmaygarde I don't know. That's an @abarth question. Does your raster cache fix resolve #5203 as well?

  9. chinmaygarde commented on Aug 22, 2016

    @chinmaygarde
    Contributor

    Well, so far, there is no raster cache fix. But the issue is in there. #5203 is also related to the raster cache but its a different issue where the results of to a texture subsequently rendering that texture to the surface vs rendering directly to the window surface (or parent picture) is resulting in rendering artifacts.

  10. sethladd commented on Aug 26, 2016

    @sethladd
    Contributor

    FWIW the shadow flash happens when going into or out of a component demo, too.

  11. abarth commented on Aug 29, 2016

    @abarth
    Contributor

    We aren't suggesting that the cullRect of the SkPicture should include any extensions introduced to shapes as a result of the filters applied on the paints that were used at the time of the draw of said shapes on the canvas are we? Seems like a pretty invasive change.

    There's code in Skia that knows how much filters outset the bounds of the geometry they're filtering. I thought that was wired up to the cull rect, but maybe it comes out somewhere else? If the cull rect doesn't take the filter outsets into account, then it can incorrectly cull pictures that actually would intersect a clip rect due to filter outsets.

  12. modified the milestones: August, on Sep 12, 2016
  13. 39 remaining items

  14. eseidelGoogle commented on Apr 25, 2017

    @eseidelGoogle
    ContributorAuthor

    Progress continues. Almost done. Blocked on more fixes from skia.

  15. eseidelGoogle commented on May 2, 2017

    @eseidelGoogle
    ContributorAuthor

    Any status updates @chinmaygarde?

  16. chinmaygarde commented on May 2, 2017

    @chinmaygarde
    Contributor

    Paths and text blobs still don't report their cull rects correctly. Waiting for fixes for the same. Will update this ticket when those changes land.

  17. eseidelGoogle commented on May 9, 2017

    @eseidelGoogle
    ContributorAuthor

    @chinmaygarde I presume this should get bumped from M2 and will end up as a May bug since it's unlikely to land today before we cut alpha?

  18. modified the milestones: 2: Make Early Adopters happy, on May 22, 2017
  19. abarth commented on Jun 7, 2017

    @abarth
    Contributor
  20. abarth commented on Jun 7, 2017

    @abarth
    Contributor

    @eseidelGoogle @chinmaygarde I thought this bug was fixed? @pylaligand seems to have just run into it again.

  21. chinmaygarde commented on Aug 28, 2017

    @chinmaygarde
    Contributor

    This issue has been fixed. I should have closed this ticket a while ago.

  22. github-actions commented on Sep 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  23. locked as resolved and limited conversation to collaborators on Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

customer: fast (g3)customer: fuchsiacustomer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.dependency: skiaSkia team may need to help usframeworkflutter/packages/flutter repository. See also f: labels.from: reviewReported in the pressp: material_uimaterial_ui package in flutter/packages

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions