Share backing canvases between browser compositors.
commit8fe39ccf33d9f1a2d785c4deebce4cc7afad7d1e
authorjbauman <jbauman@chromium.org>
Tue, 12 May 2015 23:02:10 +0000 (12 16:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 23:03:30 +0000 (12 23:03 +0000)
treeb541b3a22089b7f5b4ff417c5a5692eed1e7bd63
parentb71e399156a93a2ea675c77f1cb98c84dac813eb
Share backing canvases between browser compositors.

The software compositor's canvas is only used between BeginPaint and EndPaint. Those happen consecutively for a compositor, so we can share a single buffer to back multiple canvases, one per compositor. This cuts down on memory used to that necessary to contain just the largest window of the process.

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

Cr-Commit-Position: refs/heads/master@{#329525}
content/browser/compositor/gpu_process_transport_factory.cc
content/browser/compositor/gpu_process_transport_factory.h
content/browser/compositor/software_output_device_win.cc
content/browser/compositor/software_output_device_win.h