diff options
author | ccameron <ccameron@chromium.org> | 2016-01-11 17:15:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-12 01:16:32 +0000 |
commit | be2457f54bb9018e4e6262716e830c1dc4f07e72 (patch) | |
tree | 4ca2746ec091f6d4db603be9bb2f3bf24094f748 /cc/proto | |
parent | 6d3040cfd0ffca645a01ba2979fa9c657f71cbdc (diff) | |
download | chromium_src-be2457f54bb9018e4e6262716e830c1dc4f07e72.zip chromium_src-be2457f54bb9018e4e6262716e830c1dc4f07e72.tar.gz chromium_src-be2457f54bb9018e4e6262716e830c1dc4f07e72.tar.bz2 |
cc: Allow returning overlay resources upon swap completion
On Mac, the only way to reliably know that overlay resources are no
longer in use is by the function IOSurfaceIsInUse (which is checked by
the functions ResourceProvider::InUseByConsumer and
ResourceProvider::CanLockForWrite).
IOSurfaceIsInUse will start returning true as soon as a CALayer has its
contents set to an IOSurface, which happens during swap in the GPU
process (in particular, when a Mach port for the IOSurface is created
for sending to the WindowServer process), and so the earliest time that
resources may be returned to the renderer process is swap completion.
Repurpose a now-extinct flag to indicate that overlay resources are to
be returned immediately upon swap acknowledgement, and add tests to
ensure this behavior.
BUG=558701
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1523063005
Cr-Commit-Position: refs/heads/master@{#368751}
Diffstat (limited to 'cc/proto')
-rw-r--r-- | cc/proto/renderer_settings.proto | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/proto/renderer_settings.proto b/cc/proto/renderer_settings.proto index 6666f50..c439934 100644 --- a/cc/proto/renderer_settings.proto +++ b/cc/proto/renderer_settings.proto @@ -16,7 +16,7 @@ message RendererSettings { optional bool finish_rendering_on_resize = 5; optional bool should_clear_root_render_pass = 6; optional bool disable_display_vsync = 7; - optional bool delay_releasing_overlay_resources = 8; + optional bool release_overlay_resources_on_swap_complete = 8; optional double refresh_rate = 9; optional uint32 highp_threshold_min = 10; optional bool use_rgba_4444_textures = 11; |