Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Issue 23567032: Have GMs read the GrContext via a setter/getter rather than a global. (Closed)

Created:
7 years, 3 months ago by mtklein
Modified:
7 years, 3 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Have 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -57 lines) Patch
M gm/bleed.cpp View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M gm/gm.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M gm/gm.cpp View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 3 chunks +0 lines, -44 lines 0 comments Download
M gm/image.cpp View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M gm/texdata.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
mtklein
7 years, 3 months ago (2013-09-16 16:01:48 UTC) #1
robertphillips
lgtm modulo question https://codereview.chromium.org/23567032/diff/4001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/23567032/diff/4001/gm/gmmain.cpp#newcode1588 gm/gmmain.cpp:1588: autogr.set(gr); Why not just "gr"?
7 years, 3 months ago (2013-09-16 18:13:37 UTC) #2
mtklein
https://codereview.chromium.org/23567032/diff/4001/gm/gmmain.cpp File gm/gmmain.cpp (right): https://codereview.chromium.org/23567032/diff/4001/gm/gmmain.cpp#newcode1588 gm/gmmain.cpp:1588: autogr.set(gr); On 2013/09/16 18:13:38, robertphillips wrote: > Why not ...
7 years, 3 months ago (2013-09-16 18:17:42 UTC) #3
bsalomon
With a little bit of work the GrContext is accessible from the canvas: GrContext* context ...
7 years, 3 months ago (2013-09-16 18:26:58 UTC) #4
robertphillips
On 2013/09/16 18:26:58, bsalomon wrote: > With a little bit of work the GrContext is ...
7 years, 3 months ago (2013-09-16 18:39:29 UTC) #5
bsalomon
On 2013/09/16 18:39:29, robertphillips wrote: > On 2013/09/16 18:26:58, bsalomon wrote: > > With a ...
7 years, 3 months ago (2013-09-16 19:02:55 UTC) #6
mtklein
On 2013/09/16 19:02:55, bsalomon wrote: > On 2013/09/16 18:39:29, robertphillips wrote: > > On 2013/09/16 ...
7 years, 3 months ago (2013-09-16 19:54:55 UTC) #7
bsalomon
On 2013/09/16 19:54:55, mtklein wrote: > On 2013/09/16 19:02:55, bsalomon wrote: > > On 2013/09/16 ...
7 years, 3 months ago (2013-09-16 20:38:04 UTC) #8
mtklein
On 2013/09/16 20:38:04, bsalomon wrote: > On 2013/09/16 19:54:55, mtklein wrote: > > On 2013/09/16 ...
7 years, 3 months ago (2013-09-16 20:40:15 UTC) #9
mtklein
7 years, 3 months ago (2013-09-16 20:42:21 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as r11306 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698