commit | 6c4cca504533b317b3b61e7417e4582a45f58881 | [log] [tgz] |
---|---|---|
author | xlai <xlai@chromium.org> | Thu Nov 23 18:06:10 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 23 18:06:10 2017 |
tree | bf75b2c5d120077d8ad5efc475210e0a713a1b5b | |
parent | 4138b8862b533cba8a7d8efb5afe10f2bc90f52b [diff] |
Tear down ImageBuffer's reference to HTMLCanvasElement via ImageBufferClient As a first step to remove ImageBuffer(Surface), this CL refactors the followings: - Remove ImageBufferClient and break ImageBuffer's reference to canvas element - Move ImageBuffer's various functions to HTMLCanvasElement, including UpdateGPUMemoryUsage, DisableAcceleration, gpu_readback_frame computation, etc.) - Introduce abstract class CanvasResourceHost as a way for Canvas2DLayerBridge (and temporarily, RecordingImageBufferSurface) to point to HTMLCanvasElement. - Reconcile UpdateGPUMemoryUsage() and UpdateExternallyAllocatedMemory() in one single function. Bug: 776806 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I7b3fdfad476c02b6e4368d3ef1e5eca9688cbf5b Reviewed-on: https://chromium-review.googlesource.com/774996 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Justin Novosad <junov@chromium.org> Commit-Queue: Olivia Lai <xlai@chromium.org> Cr-Commit-Position: refs/heads/master@{#518980}
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 .