diff options
author | ericrk <ericrk@chromium.org> | 2016-03-11 15:18:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 15:18:20 -0800 |
commit | b4ecabd5a2c359f66a20207ffb02a77e624560c4 (patch) | |
tree | 3d4c7e87f527889a368d262c82f0747b3f2f9ef8 /src/gpu/GrBatchAtlas.cpp | |
parent | c04ce676d4516a8c64e29e1f60bb72cd2c6c0a59 (diff) |
Fix BGRA/RGBA readback conversions on mac
Reading back from a BGRA framebuffer as RGBA or vis-versa is slow on mac. On my early 2013 MBP, we see a 40% regression when using
the discrete GPU or a 13% regression on integrated.
This change adds a workaround which causes Mac to use the existing Mesa path and prefer readback from the same format as the
framebuffer.
BUG=581311
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1786813002
Review URL: https://codereview.chromium.org/1786813002
Diffstat (limited to 'src/gpu/GrBatchAtlas.cpp')
0 files changed, 0 insertions, 0 deletions