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

Issue 1175553002: Make GrTextContext be owned by the GrDrawContext (Closed)

Created:
5 years, 6 months ago by robertphillips
Modified:
5 years, 5 months ago
CC:
reviews_skia.org, bsalomon
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Make GrTextContext be owned by the GrDrawContext This CL makes the GrTextContext be owned (and hidden) by the GrDrawContext. This funnels all the drawText* calls through the GrDrawContext and hides the (dispreferred) GrPipelineBuilder drawText variant. Some consequences of this are: GrDrawContext now has to get the text drawing settings (i.e., SkDeviceProperties & useDFT). This means that we need a separate GrDrawContext for each combination of pixel geometry and DFT-use. All the GrTextContext-derived classes now get a back pointer to the originating GrDrawContext so their method calls no longer take one. Committed: https://skia.googlesource.com/skia/+/5b16e740fe6ab6d679083d06f07651602265081b Committed: https://skia.googlesource.com/skia/+/2334fb655f8d4ef5915770d32bf845c88d3627f4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add kNumDFTOptions #

Total comments: 2

Patch Set 3 : Add some dox #

Patch Set 4 : update to ToT #

Total comments: 2

Patch Set 5 : Added more dox #

Total comments: 7

Patch Set 6 : update to ToT #

Patch Set 7 : Address code review comments #

Patch Set 8 : Fix nvpr config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -201 lines) Patch
M include/gpu/GrContext.h View 1 2 3 4 5 6 7 6 chunks +24 lines, -27 lines 0 comments Download
M include/gpu/GrDrawContext.h View 1 2 3 4 5 6 4 chunks +36 lines, -9 lines 0 comments Download
M src/core/SkDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkDeviceProperties.h View 2 chunks +7 lines, -6 lines 0 comments Download
M src/gpu/GrAtlasTextContext.h View 4 chunks +11 lines, -10 lines 0 comments Download
M src/gpu/GrAtlasTextContext.cpp View 1 2 3 4 5 6 15 chunks +42 lines, -49 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 6 7 6 chunks +40 lines, -24 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 4 5 6 4 chunks +70 lines, -4 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.h View 3 chunks +8 lines, -7 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 3 4 5 6 7 chunks +23 lines, -23 lines 0 comments Download
M src/gpu/GrTextContext.h View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M src/gpu/GrTextContext.cpp View 1 2 3 4 5 6 8 chunks +14 lines, -22 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 3 chunks +0 lines, -3 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 8 chunks +9 lines, -9 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (16 generated)
robertphillips
5 years, 6 months ago (2015-06-09 13:46:24 UTC) #2
robertphillips
5 years, 6 months ago (2015-06-09 13:56:53 UTC) #3
joshualitt
https://codereview.chromium.org/1175553002/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1175553002/diff/1/src/gpu/GrContext.cpp#newcode83 src/gpu/GrContext.cpp:83: for (int j = 0; j < 2; ++j) ...
5 years, 6 months ago (2015-06-09 17:10:02 UTC) #4
robertphillips
https://codereview.chromium.org/1175553002/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1175553002/diff/1/src/gpu/GrContext.cpp#newcode83 src/gpu/GrContext.cpp:83: for (int j = 0; j < 2; ++j) ...
5 years, 6 months ago (2015-06-09 17:26:40 UTC) #5
joshualitt
On 2015/06/09 17:26:40, robertphillips wrote: > https://codereview.chromium.org/1175553002/diff/1/src/gpu/GrContext.cpp > File src/gpu/GrContext.cpp (right): > > https://codereview.chromium.org/1175553002/diff/1/src/gpu/GrContext.cpp#newcode83 > ...
5 years, 6 months ago (2015-06-09 18:05:32 UTC) #6
jvanverth1
Just one comment from me. https://codereview.chromium.org/1175553002/diff/20001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1175553002/diff/20001/include/gpu/GrContext.h#newcode420 include/gpu/GrContext.h:420: static const int kNumContextFlavors ...
5 years, 6 months ago (2015-06-09 19:22:38 UTC) #7
robertphillips
https://codereview.chromium.org/1175553002/diff/20001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1175553002/diff/20001/include/gpu/GrContext.h#newcode420 include/gpu/GrContext.h:420: static const int kNumContextFlavors = 5; On 2015/06/09 19:22:38, ...
5 years, 6 months ago (2015-06-09 19:26:20 UTC) #8
robertphillips
Still need API review (Brian, Mike)
5 years, 6 months ago (2015-06-10 14:19:42 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175553002/40001
5 years, 6 months ago (2015-06-10 14:29:31 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/365)
5 years, 6 months ago (2015-06-10 14:30:23 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175553002/60001
5 years, 6 months ago (2015-06-10 15:06:14 UTC) #17
reed1
defers to brian https://codereview.chromium.org/1175553002/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1175553002/diff/60001/include/gpu/GrContext.h#newcode175 include/gpu/GrContext.h:175: * Returns a helper object to ...
5 years, 6 months ago (2015-06-10 15:10:45 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-10 15:11:24 UTC) #21
robertphillips
https://codereview.chromium.org/1175553002/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1175553002/diff/60001/include/gpu/GrContext.h#newcode175 include/gpu/GrContext.h:175: * Returns a helper object to orchestrate draws. On ...
5 years, 6 months ago (2015-06-10 15:17:44 UTC) #22
bsalomon
https://codereview.chromium.org/1175553002/diff/80001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1175553002/diff/80001/include/gpu/GrContext.h#newcode179 include/gpu/GrContext.h:179: * @param devProps the device properties (mainly defines text ...
5 years, 6 months ago (2015-06-11 01:47:57 UTC) #23
robertphillips
https://codereview.chromium.org/1175553002/diff/80001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1175553002/diff/80001/include/gpu/GrContext.h#newcode179 include/gpu/GrContext.h:179: * @param devProps the device properties (mainly defines text ...
5 years, 6 months ago (2015-06-16 16:52:37 UTC) #24
bsalomon
lgtm
5 years, 6 months ago (2015-06-16 19:04:57 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175553002/120001
5 years, 6 months ago (2015-06-16 19:16:27 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-16 19:21:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175553002/120001
5 years, 6 months ago (2015-06-16 19:22:58 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://skia.googlesource.com/skia/+/5b16e740fe6ab6d679083d06f07651602265081b
5 years, 6 months ago (2015-06-16 19:23:54 UTC) #33
bsalomon
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/1178383003/ by bsalomon@google.com. ...
5 years, 6 months ago (2015-06-16 22:02:45 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175553002/140001
5 years, 6 months ago (2015-06-17 12:31:29 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-17 12:36:51 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175553002/140001
5 years, 6 months ago (2015-06-17 12:42:55 UTC) #41
commit-bot: I haz the power
5 years, 6 months ago (2015-06-17 12:43:38 UTC) #42
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/2334fb655f8d4ef5915770d32bf845c88d3627f4

Powered by Google App Engine
This is Rietveld 408576698