Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frameboundary2 #1179

Merged

Conversation

purvisa-at-google-com
Copy link
Contributor

Supersedes #1168

This PR hides support for ANDROID_frame_boundary behind a flag, and exposes that flag as a checkbox in the Trace UI dialog

Copy link
Collaborator

@kocdemir kocdemir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, please submit after reviewing the commented change requests.

@@ -322,6 +322,7 @@ type (
Capture struct {
Frames int `help:"only capture the given number of frames. 0 for all"`
}
RespectAndroidFrameBoundary bool `help:"If true: respect the ANDROID_frame_boundary extension. If false: ignore."`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this to IgnoreFrameBoundaryExtension and change the default value, hint text and behaviour accordingly?

@@ -52,6 +52,9 @@ const (
DisableCoherentMemoryTracker Flags = 0x000000100
// WaitForDebugger makes gapii wait for a debugger to connect
WaitForDebugger Flags = 0x000000200
// FLAG_RESPECT_ANDROID_FRAME_BOUNDARY
RespectFrameBoundaryDelimiters = 0x00001000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need 'Flags' suffix here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently not, but good catch. Added

@purvisa-at-google-com purvisa-at-google-com merged commit 126b3f9 into google:master Aug 19, 2022
rosasco-wk pushed a commit to rosasco-wk/agi that referenced this pull request Sep 3, 2022
* Hide ANDROID_frame_boundary behind a flag / UI checkbox

* Generalise the name of frame boundary delimiters

* Change name "respect" to "ignore" and invert meaning

* Change flag meaning to respect vkQueuePresent xor ANDROID_frame_boundary

* fix presubmit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants