Mac: Use -[CALayer setContentsChanged] for updates
commitd00ca3fc285e05c0c9a995b101740b630fd14355
authorccameron <ccameron@chromium.org>
Wed, 17 Jun 2015 22:48:36 +0000 (17 15:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 22:49:15 +0000 (17 22:49 +0000)
treebb0514b6cd1d663b4a2a3a830ac96b78a02c7ee6
parentc9c0db2c09cf9f63a7bab49b2bcd145add3ebef6
Mac: Use -[CALayer setContentsChanged] for updates

This saves about 0.5 Watts (on a Retina Macbook Pro) compared with
calling -[CALayer setContents:].

BUG=496484

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

Cr-Commit-Position: refs/heads/master@{#334945}
content/common/gpu/image_transport_surface_calayer_mac.h
content/common/gpu/image_transport_surface_calayer_mac.mm