virtual void GetSyncToken() = 0;
nit: Since this function no longer returns a value, its name `GetSyncToken` can be misleading. Consider renaming it to something like `UpdateSyncToken` or `EnsureSyncToken` to better reflect its action of updating internal state. (Blink Style Guide: Naming - Precede setters with the word “Set”; use bare words for getters)
_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason
This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
virtual void GetSyncToken() = 0;
nit: Since this function no longer returns a value, its name `GetSyncToken` can be misleading. Consider renaming it to something like `UpdateSyncToken` or `EnsureSyncToken` to better reflect its action of updating internal state. (Blink Style Guide: Naming - Precede setters with the word “Set”; use bare words for getters)
_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reasonThis comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Won't fix: `GetSyncToken()` will be renamed to e.g. `EndScopedAccess()` in follow-up CLs soon.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
friend class CanvasResourceProviderSharedImage;
Note: this `friend` declaration is to allow the use of `sync_token()` in `CanvasResourceProviderSharedImage`.
friend class WebGPUMailboxTexture;
Note: this `friend` declaration is to allow the use of `sync_token()` in `WebGPUMailboxTexture`.
void EnsureResourceRecycled(CanvasResourceProvider* provider,
Note: this function is moved here so that it can call the non-public `resource->sync_token()`.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
canvas_resource->GetSyncToken();
(out of the scope here): It's quite unfortunate that we missed this one, before we removed the bool from CR it should have been no-op, because it's not matched with `WillDrawInternal`, so it would never generate one.
We probably need to remove it (in a follow-up), otherwise we don't have ScopedAccess to pass in here.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
canvas_resource->GetSyncToken();
(out of the scope here): It's quite unfortunate that we missed this one, before we removed the bool from CR it should have been no-op, because it's not matched with `WillDrawInternal`, so it would never generate one.
We probably need to remove it (in a follow-up), otherwise we don't have ScopedAccess to pass in here.
Acknowledged. I'll remove it in a follow-up CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Refactor CanvasResource::GetSyncToken()
This CL removes the return value of CanvasResource::GetSyncToken()
and lets its callers use CanvasResource::sync_token() instead to get
the sync token. This change is a prerequisite of follow-up changes of
turning GetSyncToken() into EndScopedAccess().
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |