Repository: flutter
Issue: [ChromeOS] Flutter android apps(APK) on Chromebook slow and weird animation on scrolling and long press on button.
Labels: platform-android,engine,a: animation,platform-chromebook,c: rendering,P2,team-android,triaged-android

## Details
1. Create a flutter android APK with buttons and scroll view in it and run in Chromebook, While scrolling and long press on elevated buttons a black animation is displayed all over the screen.
https://gist.github.com/ajayprasath17/5fa9c8ef6c34e2553a04cd9820e04a6d


![MicrosoftTeams-image](https://user-images.githubusercontent.com/53042957/175079376-362131be-cd27-4262-bf6d-c99de59268bc.png)

<!--
1.  Please tell us exactly how to reproduce the problem you are running into.

3.  Please attach a small application (ideally just one main.dart file) that
     reproduces the problem. You could use https://gist.github.com/ for this.

4.  Switch flutter to master channel and run this app on a physical device
     using profile mode with Skia tracing enabled, as follows:
       flutter channel master
       flutter run --profile --trace-skia

     The bleeding edge master channel is encouraged here because Flutter is
     constantly fixing bugs and improving its performance. Your problem in an
     older Flutter version may have already been solved in the master channel.

5.  Record a video of the performance issue using another phone so we
     can have an intuitive understanding of what happened. Don’t use
     "adb screenrecord", as that affects the performance of the profile run.

6.  Open Observatory and save a timeline trace of the performance issue
     so we know which functions might be causing it. See "How to Collect
     and Read Timeline Traces" on this blog post:
       https://medium.com/flutter/profiling-flutter-applications-using-the-timeline-a1a434964af3#a499
     Make sure the performance overlay is turned OFF when recording the
     trace as that may affect the performance of the profile run.
     (Pressing ‘P’ on the command line toggles the overlay.)
-->

<!--
     Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
     Which target OS version, for Web, browser, is the test system running?
     Does the problem occur on emulator/simulator as well as on physical devices?
-->
Google Chrome: Version 102.0.5005.75 (Official Build)  (64-bit)
Platform: 14695.85.0 (Official Build) stable-channel octopus
Channel: stable-channel
Firmware Version: Google_Bloog.11297.275.0
ARC enabled: true
ARC: 8620534
Enterprise enrolled: false
Developer mode: true

**Target Platform: Chrome Book**
**Target OS version/browser: ChromeOS**
**Devices: HP chromebook**

## Logs

<details>
<summary>Logs</summary>

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.4 21F79 darwin-x64, locale en-GB) 

    • Flutter version 2.5.3 at /Users/manojkumar.b/Downloads/flutter_2.5.3/flutter 

    • Upstream repository https://github.com/flutter/flutter.git 

    • Framework revision 18116933e7 (8 months ago), 2021-10-15 10:46:35 -0700 

    • Engine revision d3ea636dc5 

    • Dart version 2.14.4 

  

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) 

    • Android SDK at /Users/manojkumar.b/Library/Android/sdk 

    • Platform android-33, build-tools 31.0.0 

    • ANDROID_HOME = /Users/manojkumar.b/Library/Android/sdk 

    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java 

    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) 

    • All Android licenses accepted. 

  

[✓] Xcode - develop for iOS and macOS 

    • Xcode at /Applications/Xcode.app/Contents/Developer 

    • Xcode 13.4.1, Build version 13F100 

    • CocoaPods version 1.11.2 

  

[✓] Chrome - develop for the web 

    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome 

  

[✓] Android Studio (version 4.2) 

    • Android Studio at /Applications/Android Studio.app/Contents 

    • Flutter plugin can be installed from: 

      🔨 https://plugins.jetbrains.com/plugin/9212-flutter 

    • Dart plugin can be installed from: 

      🔨 https://plugins.jetbrains.com/plugin/6351-dart 

    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) 

  

[✓] VS Code (version 1.67.2) 

    • VS Code at /Applications/Visual Studio Code.app/Contents 

    • Flutter extension version 3.42.0 

  

[✓] Connected device (2 available) 

    • iPhone SE (3rd generation) (mobile) • 4F4F7A77-B360-4440-AB47-C7269F8CE1B5 • ios            • 

      com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator) 

    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 102.0.5005.115 

  

• No issues found! 
<!-- Finally, paste the output of running `flutter doctor -v` here, with your device plugged in. -->

```
```

</details>