Repository navigation
cobalt: Enable memory optimization features on 3P - #12996
Merged
Merged
Conversation
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request configures several features to be disabled by default on Android while remaining enabled on other platforms, and introduces a new feature parameter kCobaltCCImageCacheLimitItemsMbs to control the image cache size limit in megabytes. Feedback suggests clarifying the comment for the new parameter to accurately state that negative values fallback to the default limit rather than applying no limit, and using base::CheckedNumeric during the megabytes-to-bytes conversion to prevent potential integer overflow.
borongc
reviewed
Sep 29, 2026
borongc
reviewed
Sep 29, 2026
borongc
reviewed
Sep 29, 2026
jasonzhangxx
force-pushed
the
enable-feature-on-3p
branch
from
September 29, 2026 22:27
640589f to
cc6e62e
Compare
sherryzy
approved these changes
Sep 29, 2026
jasonzhangxx
force-pushed
the
enable-feature-on-3p
branch
from
September 29, 2026 23:32
cc6e62e to
28e67f0
Compare
Makes the following Cobalt features enabled by default on non-Android platforms, while keeping them disabled by default on Android: - CobaltInProcessImageTransferCache - CobaltInProcessDirectRaster - CobaltContentLengthAwareMojoPipeSizing Adds a feature param kCobaltCCImageCacheLimitItemsMbs to the existing CobaltCCImageCacheLimitItems feature. Bug: 545866687 Bug: 545216717 Bug: 520888239
jasonzhangxx
force-pushed
the
enable-feature-on-3p
branch
from
September 30, 2026 18:38
28e67f0 to
452ecef
Compare
briantting
pushed a commit
that referenced
this pull request
Sep 30, 2026
…atures on 3P Refer to original PR: #12996 Makes the following Cobalt features enabled by default on non-Android platforms, while keeping them disabled by default on Android: - CobaltInProcessImageTransferCache - CobaltInProcessDirectRaster - CobaltContentLengthAwareMojoPipeSizing Adds a feature param kCobaltCCImageCacheLimitItemsMbs to the existing CobaltCCImageCacheLimitItems feature. Test fixes for the features being enabled by default: - Flush GPU tasks while the cache is alive to unref images. - Finalize the DisplayItemList before sending it to Raster. Bug: 545866687 Bug: 545216717 Bug: 520888239 (cherry picked from commit d0ee097)
briantting
pushed a commit
that referenced
this pull request
Sep 30, 2026
…features on 3P (#13040) Automated cherry-pick roll to staging. Original pull requests: - #12996 CONFLICTED files: ``` cc/tiles/gpu_image_decode_cache_unittest.cc ``` To merge these changes, run the autoroll script: ```bash GITHUB_REPOSITORY=youtube/cobalt python3 cobalt/devinfra/github/autoroll/merge_autoroll.py \ --source-branch main \ --target-branch staging ```⚠️ This PR has conflicts that must be resolved manually (don't forget to update the `.github/AUTOROLL` file). Use the following commands to checkout the branch locally and resolve the conflicts in a separate commit: ```bash gh pr checkout <pull_request_number> -R youtube/cobalt # Resolve conflicts and update .github/AUTOROLL then git add <resolved_files> # Copy CONFLICTED commit's message and metadata # Replace CONFLICTED in title with RESOLVED git commit -c <conflicted_sha> git push origin autoroll-main-to-staging ``` --------- Co-authored-by: Jason <jasonzh@google.com>
abhijeetk
added a commit
to abhijeetk/cobalt
that referenced
this pull request
Oct 6, 2026
PR youtube#12996 enabled the feature outside Android, which exposed tvOS. Disable the feature by default on tvOS, as on Android. tvOS then takes the serialized path, which uploads through the Graphite recorder. Bug: 568730789
yell0wd0g
pushed a commit
that referenced
this pull request
Oct 6, 2026
PR #12996 enabled the feature outside Android, which exposed tvOS. Disable the feature by default on tvOS, as on Android. tvOS then takes the serialized path, which uploads through the Graphite recorder. Bug: 568730789
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
Refer to original PR: #12996 Makes the following Cobalt features enabled by default on non-Android platforms, while keeping them disabled by default on Android: - CobaltInProcessImageTransferCache - CobaltInProcessDirectRaster - CobaltContentLengthAwareMojoPipeSizing Adds a feature param kCobaltCCImageCacheLimitItemsMbs to the existing CobaltCCImageCacheLimitItems feature. Test fixes for the features being enabled by default: - Flush GPU tasks while the cache is alive to unref images. - Finalize the DisplayItemList before sending it to Raster. Bug: 545866687 Bug: 545216717 Bug: 520888239 (cherry picked from commit d0ee097)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the following Cobalt features enabled by default on non-Android platforms, while keeping them disabled by default on Android:
Adds a feature param kCobaltCCImageCacheLimitItemsMbs to the existing CobaltCCImageCacheLimitItems feature.
Test fixes for the features being enabled by default:
Bug: 545866687
Bug: 545216717
Bug: 520888239