-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Vk query cleanups. #47208
Conversation
|
|
||
| void GPUTracerVK::MarkFrameStart() { | ||
| FML_DCHECK(!in_frame_); | ||
| FML_CHECK(!in_frame_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be changed back to a DCHECK
| private: | ||
| friend struct GPUProbe; | ||
|
|
||
| static const constexpr size_t kTraceStatesSize = 32u; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I increased the size of the number of pending queries because on very slow apps I observed that we would get backed up more than the previous 16.
|
These tests are failing sometimes because I'm relying on the dtor to call this final query method, but my latch is invoked by the closure that runs first. |
| bool enabled_ = false; | ||
| }; | ||
|
|
||
| struct GPUProbe { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this behaves more class-like, I'd just make it a class
(https://google.github.io/styleguide/cppguide.html#Structs_vs._Classes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. It did start out more struct like...
…137100) flutter/engine@e89f042...abeab89 2023-10-23 [email protected] [Impeller] Added tests to assert empty saveLayer behaviors. (flutter/engine#47138) 2023-10-23 [email protected] Roll Skia from d534571c4bc3 to 73e9879f06e7 (1 revision) (flutter/engine#47233) 2023-10-23 [email protected] Add missing headers to the fml source_set. (flutter/engine#47232) 2023-10-23 [email protected] [Impeller] Vk query cleanups. (flutter/engine#47208) 2023-10-23 [email protected] Roll Skia from 4976279e4441 to d534571c4bc3 (1 revision) (flutter/engine#47231) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Use RAII to more accurately capture cmd buffer start/end, with additional protections for early frame ending. This also allows us to capture the execution time of the final cmd buffer, which should fix flutter/flutter#136971
Use RAII to more accurately capture cmd buffer start/end, with additional protections for early frame ending. This also allows us to capture the execution time of the final cmd buffer, which should fix flutter/flutter#136971