Don't preload rarely seen large images
commit5c12ff9635888315abbba2519501a621634932f0
authorzbowling <zbowling@chromium.org>
Tue, 7 Jul 2015 03:54:05 +0000 (6 20:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Jul 2015 03:54:36 +0000 (7 03:54 +0000)
tree3b9767dc59156895551152b002a5e2b56f6f83d2
parent1fcdaf2104ba7feb0f353cab0c87f6d14e1befa5
Don't preload rarely seen large images

The layer cardback image uses 180k memory decompressed but only seen on
merged tab switcher on non-low memory devices.

Also tweak the preloading logic to not preload tablet only resources on
phones.

BUG=503437

Review URL: https://codereview.chromium.org/1217893013

Cr-Commit-Position: refs/heads/master@{#337557}
chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/resources/StaticResourcePreloads.java
chrome/browser/android/compositor/layer/tab_layer.cc