Repository: flutter
Issue: [Web][Linux][Canvaskit]: Flutter disables OpenGL / WebGL when starting via Chrome 
Labels: engine,platform-web,platform-linux,e: web_canvaskit,P2,team-web,triaged-web

## Steps to Reproduce

This issue already was filed here: #95127 and #91223
But it was classified as a WebGL issue. (Without referencing any issue)

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run -d chrome` on any flutter application compatible with web
2. Type: `chrome://gpu` in the 
3. Compare the output:
```
Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Canvas out-of-process rasterization: Disabled
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Disabled
Rasterization: Software only. Hardware acceleration disabled
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Software only, hardware acceleration unavailable
WebGL2: Software only, hardware acceleration unavailable
```

1. Simply start your installed chrome or execute `flutter run -d web-server` on any flutter application compatible with web
2. Type: `chrome://gpu` in the 
3. Compare the output:
```
Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Enabled
Rasterization: Software only. Hardware acceleration disabled
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
```

**Expected results:** <!-- what did you want to see? -->

To have the same output on both commands

**Actual results:** <!-- what did you see? -->

OpenGL is disabled when running via `-d chrome`
I think this also affects the execution inside [IntelliJ Flutter](https://github.com/flutter/flutter-intellij) plugin.

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```dart
```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
💪 Running with sound null safety 💪
Debug service listening on ws://127.0.0.1:37143/CSmIhQ2Ot-s=/ws
00:00 +0: Ride Check Out: User checks out and dismisses ride completion dialog
Random network latency applied: 0:00:01.683446
WARNING: failed to attach a stencil buffer. Rendering will be skipped.
WARNING: Falling back to CPU-only rendering. Failed to initialize WebGL context.
```

On hot restart
```
Performing hot restart...
Waiting for connection from debug service on Chrome...
Restarted application in 6,267ms.
00:00 +0: Ride Check Out: User checks out and dismisses ride completion dialog
WARNING: Falling back to CPU-only rendering. WebGL support not detected.
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
```

</details>


<details>
<summary>neofetch</summary>
<p>

        ```
            august@latitude-7400 
            -------------------- 
            OS: Ubuntu 21.10 x86_64 
            Host: Latitude 7400 
            Kernel: 5.13.0-25-generic 
            Uptime: 2 days, 23 hours, 13 mins 
            Packages: 2093 (dpkg), 1 (brew), 15 (snap) 
            Shell: bash 5.1.8 
            Resolution: 2560x1440 
            DE: GNOME 40.5 
            WM: Mutter 
            WM Theme: Adwaita 
            Theme: Yaru-dark [GTK2/3] 
            Icons: Yaru [GTK2/3] 
            Terminal: gnome-terminal 
            CPU: Intel i7-8665U (8) @ 4.800GHz 
            GPU: Intel WhiskeyLake-U GT2 [UHD Graphics 620] 
            Memory: 12911MiB / 15813MiB 
        ```

</p>
</details>


<details>
<summary>flutter doctor</summary>

This has nothing to do with the environment, as this is another issue: #94060
<p>

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on Ubuntu 21.10 5.13.0-25-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[☠] IntelliJ IDEA Ultimate Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.


</p>
</details>