On 2012/07/20 14:53:50, TomH wrote:
> Added helper. Half the places we're building things are on GrPaint instead of
> GrDrawState, but this is at least somewhat more concise.
LGTM. It seems like we could make GrPaint::setTexture/setMask() do the same
thing as GrDrawState::createTextureEffect() once we kill that last use of the
existing setTexture.
It looks like this caused a pretty severe performance regression of the
picture_playback benchmarks - worst on Linux, mildest on Windows - and will need
further modification or rollback. When I'm back in the office tomorrow I'll see
if we're now hitting memory management and need to test Brian's technique.
For the record: using GrMemoryPool recovers most of the regression, but SkTLS is
slowing that down. For now we've accepted the performance loss and filed a bug
to watch it.
Issue 6425055: Remove all easily-removable uses of setTexture()
(Closed)
Created 13 years ago by TomH
Modified 13 years ago
Reviewers: bsalomon
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 2