DescriptionLoad 2x resources on demand
Currently, this always load 1x. This will be fixed in follow up CL to use currently used scale factor.
* Added thread check to ImageSkiaStorage using NonThreadSafe.
This is important as GetRepresentation may change the stage
now even for the Image obtained from ResourceBundle.
* Added SetReadOnly to protect read only resources (ones in ResourceBundle) from being modified by accident.
* Addded MakeThreadSafe to guarantee that it can be safely accessed from multiple threads.
BUG=141351, 144367
TEST=covered by tests. Also run with --force-device-scale-factor=2 and --load-2x-resources and make sure chrome still uses 2x resources where available.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153846
Patch Set 1 #Patch Set 2 : . #
Total comments: 3
Patch Set 3 : NOT FOR REVIEW: Testing thread #Patch Set 4 : . #
Total comments: 1
Patch Set 5 : cleanup #Patch Set 6 : cleanup #
Total comments: 1
Patch Set 7 : CHECK -> DCHECK #
Total comments: 4
Patch Set 8 : #
Total comments: 2
Patch Set 9 : remove unnecessary code #
Total comments: 7
Patch Set 10 : #
Total comments: 2
Patch Set 11 : NOT FOR REVIEW #Patch Set 12 : For preview #
Total comments: 4
Patch Set 13 : #Patch Set 14 : cleanup #
Total comments: 4
Patch Set 15 : updated comment #Messages
Total messages: 28 (0 generated)
|