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

Issue 400713003: Add a GrPathRange class (Closed)

Created:
6 years, 5 months ago by Chris Dalton
Modified:
6 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@clupload-ispath
Project:
skia
Visibility:
Public.

Description

Add a GrPathRange class Adds a GrPathRange object that represents a range of paths on the gpu. Updates GrDrawTarget::drawPaths and supporting code to use GrPathRange instead of an array of GrPath objects. Change-Id: I67845f3893cd4d955db947d699aa3733cbb081e0 BUG=skia: Committed: https://skia.googlesource.com/skia/+/b85a0aab6905af8b329539b7573a7555b727d5e5

Patch Set 1 #

Total comments: 13

Patch Set 2 : #

Patch Set 3 : Add needed #includes for other platforms #

Patch Set 4 : Remove SkRefPtr, as it was just take out of Skia #

Patch Set 5 : One more tweak to make the code prettier after removing SkRefPtr #

Patch Set 6 : Declare struct GrGLInterface, not class #

Patch Set 7 : Trivially fix windows warnings #

Patch Set 8 : Fix more windows trivial warningswq #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -243 lines) Patch
M gyp/gpu.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M include/core/SkStrokeRec.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 4 chunks +49 lines, -15 lines 1 comment Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 1 chunk +14 lines, -23 lines 0 comments Download
M src/gpu/GrGpu.h View 1 5 chunks +17 lines, -5 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 3 chunks +11 lines, -5 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 3 chunks +10 lines, -7 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 3 5 chunks +25 lines, -21 lines 0 comments Download
M src/gpu/GrPath.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/gpu/GrPath.cpp View 1 chunk +41 lines, -12 lines 0 comments Download
A src/gpu/GrPathRange.h View 1 1 chunk +60 lines, -0 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.h View 1 chunk +11 lines, -5 lines 0 comments Download
M src/gpu/GrStencilAndCoverTextContext.cpp View 1 2 3 4 5 6 8 chunks +126 lines, -84 lines 0 comments Download
M src/gpu/gl/GrGLPath.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 1 2 chunks +30 lines, -19 lines 0 comments Download
A src/gpu/gl/GrGLPathRange.h View 1 chunk +48 lines, -0 lines 0 comments Download
A src/gpu/gl/GrGLPathRange.cpp View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 2 3 5 chunks +41 lines, -44 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
Chris Dalton
6 years, 5 months ago (2014-07-17 16:08:30 UTC) #1
bsalomon
https://codereview.chromium.org/400713003/diff/1/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/400713003/diff/1/include/gpu/GrTypes.h#newcode217 include/gpu/GrTypes.h:217: static inline int GrTransformSize(GrTransformFormat format) { Can we call ...
6 years, 5 months ago (2014-07-17 17:27:28 UTC) #2
Chris Dalton
https://codereview.chromium.org/400713003/diff/1/include/gpu/GrTypes.h File include/gpu/GrTypes.h (right): https://codereview.chromium.org/400713003/diff/1/include/gpu/GrTypes.h#newcode217 include/gpu/GrTypes.h:217: static inline int GrTransformSize(GrTransformFormat format) { On 2014/07/17 17:27:28, ...
6 years, 5 months ago (2014-07-17 18:15:19 UTC) #3
Chris Dalton
This one should address all the comments up to now.
6 years, 5 months ago (2014-07-17 22:08:23 UTC) #4
Chris Dalton
Adding Kimmo (currently out of office) as an FYI
6 years, 5 months ago (2014-07-18 20:56:52 UTC) #5
bsalomon
lgtm https://codereview.chromium.org/400713003/diff/1/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): https://codereview.chromium.org/400713003/diff/1/src/gpu/GrInOrderDrawBuffer.cpp#newcode472 src/gpu/GrInOrderDrawBuffer.cpp:472: dp->fIndices = SkNEW_ARRAY(uint32_t, count); // TODO: Accomplish this ...
6 years, 5 months ago (2014-07-21 14:11:08 UTC) #6
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 17:14:38 UTC) #7
Chris Dalton
The CQ bit was unchecked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 17:14:50 UTC) #8
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 17:14:51 UTC) #9
Chris Dalton
6 years, 5 months ago (2014-07-21 17:15:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/400713003/20001
6 years, 5 months ago (2014-07-21 17:15:02 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Mac10.8-Clang-x86-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-21 17:27:23 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 17:29:32 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/622)
6 years, 5 months ago (2014-07-21 17:29:33 UTC) #14
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 17:52:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/400713003/40001
6 years, 5 months ago (2014-07-21 17:52:42 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Mac10.8-Clang-x86-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-21 18:04:22 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 18:06:24 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-GCC4.8-Arm7-Debug-Android-Trybot/builds/624)
6 years, 5 months ago (2014-07-21 18:06:25 UTC) #19
Chris Dalton
I'll wait a minute in case anybody wants to review the SkRefPtr<> -> SkAutoTUnref<> cahnges, ...
6 years, 5 months ago (2014-07-21 21:03:42 UTC) #20
bsalomon
On 2014/07/21 21:03:42, Chris Dalton wrote: > I'll wait a minute in case anybody wants ...
6 years, 5 months ago (2014-07-21 21:14:35 UTC) #21
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 21:17:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/400713003/80001
6 years, 5 months ago (2014-07-21 21:18:16 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Mac10.8-Clang-x86-Release-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-21 21:29:40 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 21:33:49 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot/builds/834)
6 years, 5 months ago (2014-07-21 21:33:50 UTC) #26
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 21:34:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/400713003/100001
6 years, 5 months ago (2014-07-21 21:35:29 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Win-VS2013-x86-Debug-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-21 21:47:50 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-21 21:54:29 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-VS2013-x86-Debug-Trybot on tryserver.skia (http://108.170.220.76:10117/builders/Build-Win-VS2013-x86-Debug-Trybot/builds/928)
6 years, 5 months ago (2014-07-21 21:54:30 UTC) #31
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 22:02:14 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/400713003/120001
6 years, 5 months ago (2014-07-21 22:02:40 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Win-VS2013-x86-Debug-Trybot on tryserver.skia ...
6 years, 5 months ago (2014-07-21 22:14:03 UTC) #34
Chris Dalton
The CQ bit was checked by cdalton@nvidia.com
6 years, 5 months ago (2014-07-21 22:18:55 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/cdalton@nvidia.com/400713003/140001
6 years, 5 months ago (2014-07-21 22:19:49 UTC) #36
commit-bot: I haz the power
Change committed as b85a0aab6905af8b329539b7573a7555b727d5e5
6 years, 5 months ago (2014-07-21 22:32:50 UTC) #37
Nico
6 years, 4 months ago (2014-08-12 04:20:21 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/400713003/diff/140001/src/gpu/GrDrawTarget.h
File src/gpu/GrDrawTarget.h (right):

https://codereview.chromium.org/400713003/diff/140001/src/gpu/GrDrawTarget.h#...
src/gpu/GrDrawTarget.h:358: PathTransformSize(transformsType) × count elements
Can you replace this with ascii please? On some locales, windows's cl.exe has
trouble with non-ascii.

Powered by Google App Engine
This is Rietveld 408576698