DescriptionMake HasRepresentation() work better for vector images.
Since vector images do not have an initial, preset group of representations
loaded, if GetRepresentation() has not yet been called for a particular scale
factor, HasRepresentation() will return false, even though a call to
GetRepresentation() would succeed. This plumbs a new function that allow vector
images to say that they can provide a representation at any scale factor, and
thus HasRepresentation() can succeed as long as the image is not
VECTOR_ICON_NONE.
For the rationale that led to this, see the CL comments on
https://codereview.chromium.org/1829353002/ .
BUG=none
TEST=none
Committed: https://crrev.com/0c287a38f4d35d9e01cee7691a37b1ea0e85263a
Cr-Commit-Position: refs/heads/master@{#384132}
Patch Set 1 #Patch Set 2 : Merge correctly #Patch Set 3 : De-inline #Patch Set 4 : Add DCHECK #
Dependent Patchsets: Messages
Total messages: 11 (4 generated)
|