commit | af3170e5f40955165ffea7a5dd0d8032a9e012f5 | [log] [tgz] |
---|---|---|
author | danakj <danakj@chromium.org> | Fri Feb 09 17:31:58 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 09 17:31:58 2018 |
tree | 44300ef54d5492577edb5e73568862de75cbd88b | |
parent | 4a16a1c9a5857d071d628fe95924f12eb701f326 [diff] |
Move ownership of gpu texture resources to ResourcePool This makes allocation of resources in OneCopyRasterBufferProvider and GpuRasterBufferProvider happen directly instead of through a ResourceProvider lock, and stores ownership of the resources in the ResourcePool. For each RasterBufferProvider, a) When AcquireBufferForRaster is called it creates the GpuBacking and ensures the sync token is waited on if present, and creates a texture and mailbox. b) After playback on the worker, a sync token is created. c) When the RasterBuffer is destroyed, back on the compositor thread, it stores that sync token into the GpuBacking. R=sunnyps@chromium.org, vmpstr@chromium.org Bug: 730660, 738190 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel Change-Id: Ide0005262435cc4a0925766761221dc8852f0026 Reviewed-on: https://chromium-review.googlesource.com/895806 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Eric Karl <ericrk@chromium.org> Cr-Commit-Position: refs/heads/master@{#535741}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .