skia /
skia /
625ac80c00b9fa38df23556ccdcaff31b6ca0216 [graphite] Only update shareable resource labels upon insertion into cache
* This CL makes it such that we only set the label on shareable resources upon initial insertion into the cache. Shareable resources can be returned from the ResourceCache at any time. We do not anticipate shareable resources needing to change labels (Graphite’s current set of shareable resources likely have generic-enough labels), so setting the label once and not modifying it should be sufficient and keeps the resource label threadsafe.
* This CL also outlines the eventual resource + backend resource labeling procedure in the Resource header.
* Subsequent changes will implement the other resource policies outlined.
Bug: b/387505250
Change-Id: Id146132f5278a8acbe90c633a223921534e7a9a4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1086676
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Thomas Smith <thomsmit@google.com>
Commit-Queue: Nicolette Prevost <nicolettep@google.com>
2 files changed