OSDN Git Service

Allow Blitter::fastClear to directly write to external buffer
authorAlexis Hetu <sugoi@google.com>
Mon, 26 Mar 2018 01:02:17 +0000 (21:02 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 26 Mar 2018 12:36:17 +0000 (12:36 +0000)
commit7622b96ac5945aa60f9ad4fbe576c0c9f33e565f
tree65159e1d3554ee7d35de480793d3c17aa8d3f3b4
parent53e83aa8ecebea4913051dcdfd6923a3dd6fcccb
Allow Blitter::fastClear to directly write to external buffer

When the external buffer is the one that is dirty, avoid a useless
copy from external to internal before fast clearing the buffer by
clearing the external buffer directly.

Change-Id: I469243ba8a2b8617f9a0f8b6e2a089f667b8ae63
Reviewed-on: https://swiftshader-review.googlesource.com/18033
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Renderer/Blitter.cpp