Descriptioncustomtabs: Create a spare WebContents in warmup() on non low-end devices.
A pre-created renderer is not specific to a given navigation, which
means that we can create it in warmup(). This is not done on low-end
devices, as the memory cost is more significant in this case.
The behavior is:
- When warmup() is called, create a spare WebContents, unless there is
already a prerendered one. This WebContents requests a renderer.
- If this renderer dies, then don't revive it.
- A prerender destroys this WebContents, as it cannot currently re-use
the same one.
- Calling warmup() again when the spare WebContents has been taken will
re-create a new one.
This is checked by tests.
BUG=548704
Committed: https://crrev.com/c9f5539fb08bf8d5979b2de283f27b936cdc33bb
Cr-Commit-Position: refs/heads/master@{#356894}
Patch Set 1 #Patch Set 2 : Cosmetic changes. #
Total comments: 8
Patch Set 3 : Naming. #
Messages
Total messages: 10 (3 generated)
|