Limit outstanding surface draw swaps to max_frames_pending.
commit032174589b8ff1a6ee7a0643b9490aa9c17b4703
authorjbauman <jbauman@chromium.org>
Tue, 23 Sep 2014 00:47:58 +0000 (22 17:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Sep 2014 00:48:11 +0000 (23 00:48 +0000)
tree5436faf3db3fdd4fdb337a1d424e81e2c155498a
parent0fb0a60d20f1cf75043db3f73726d7d2b82abe9a
Limit outstanding surface draw swaps to max_frames_pending.

Avoid queueing up too many swaps on the GPU.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#296111}
cc/surfaces/display.cc
cc/surfaces/display.h
cc/surfaces/display_client.h
content/browser/compositor/onscreen_display_client.cc
content/browser/compositor/onscreen_display_client.h
mojo/services/surfaces/surfaces_impl.cc
mojo/services/surfaces/surfaces_impl.h