DescriptionHave GMs read the GrContext via a setter/getter rather than a global.
GetGr's current global state makes things rather tricky to run GPU GMs in
parallel (DM). This API change will let me feed the right GrContext to the
right GM in DM.
I'm not planning on changing the status quo in GM-the-tool: the new getters and
setters still just return the same global.
BUG=skia:1590
R=bsalomon@google.com, robertphillips@google.com
Committed: https://code.google.com/p/skia/source/detail?r=11306
Patch Set 1 #Patch Set 2 : initialize fGr to NULL #
Total comments: 2
Patch Set 3 : review #Patch Set 4 : use Brian's suggestion #
Messages
Total messages: 10 (0 generated)
|