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

Issue 451723003: SkPatchGrid interface (after SkPatch/SkPicture rebase). (Closed)

Created:
6 years, 4 months ago by dandov
Modified:
6 years, 4 months ago
Reviewers:
egdaniel, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Proposal for the mesh gradient interface. Implemented as a grid of patches and uses 4 private arrays to store the values of the control points and colors. When it needs a patch at a certain position of the grid it just builds it using the corresponding values of the array and the grid coordinates provided. Details on implementation are documented in the corresponding classes' comments. Also added a gm for mesh gradients. BUG=skia: Committed: https://skia.googlesource.com/skia/+/cc03adb90901d226e8b0252a187b19a68fabcc42

Patch Set 1 #

Total comments: 6

Patch Set 2 : Changed name to SkPatchGrid #

Total comments: 10

Patch Set 3 : Draw order for patches in grid and bool for getPatch #

Patch Set 4 : Renamed GM to SKPatchGridGM and removed last mesh references in comments #

Total comments: 6

Patch Set 5 : Fixed small nits #

Patch Set 6 : Using new SkCanvas::drawPatch(const SkPoint cubics[12], ...) #

Patch Set 7 : Moved SkPatchGrid to utils #

Patch Set 8 : Use fXferMode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -2 lines) Patch
M gm/patch.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A gm/patchgrid.cpp View 1 2 3 4 5 1 chunk +165 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gyp/utils.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A src/utils/SkPatchGrid.h View 1 2 3 4 5 6 7 1 chunk +144 lines, -0 lines 0 comments Download
A src/utils/SkPatchGrid.cpp View 1 2 3 4 5 6 7 1 chunk +188 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
dandov
Added again the interface for the mesh gradient but this issue is already rebased on ...
6 years, 4 months ago (2014-08-07 17:41:07 UTC) #1
egdaniel
initial comments, more later https://codereview.chromium.org/451723003/diff/1/src/effects/gradients/SkMeshGradient.h File src/effects/gradients/SkMeshGradient.h (right): https://codereview.chromium.org/451723003/diff/1/src/effects/gradients/SkMeshGradient.h#newcode27 src/effects/gradients/SkMeshGradient.h:27: * The array fExists holds ...
6 years, 4 months ago (2014-08-07 17:58:55 UTC) #2
dandov
Already fixed the comments, I'll add them after deciding what to do with resize. https://codereview.chromium.org/451723003/diff/1/src/effects/gradients/SkMeshGradient.h ...
6 years, 4 months ago (2014-08-07 18:11:46 UTC) #3
dandov
Renamed to SkPatchGrid, removed resize function and pointer constructor. Added SkPatchGrid to core, any suggestions ...
6 years, 4 months ago (2014-08-07 21:11:49 UTC) #4
egdaniel
Since we have moved away from the mesh gradient name, you probably should also rename ...
6 years, 4 months ago (2014-08-08 14:39:04 UTC) #5
dandov
The last fixes are in the last 2 patch sets. I finished most of them ...
6 years, 4 months ago (2014-08-08 18:31:46 UTC) #6
egdaniel
L-G-T-M + nits (still will need either Mike or Brian to say yes) https://codereview.chromium.org/451723003/diff/60001/include/core/SkPatchGrid.h File ...
6 years, 4 months ago (2014-08-08 18:45:41 UTC) #7
dandov
https://codereview.chromium.org/451723003/diff/60001/include/core/SkPatchGrid.h File include/core/SkPatchGrid.h (right): https://codereview.chromium.org/451723003/diff/60001/include/core/SkPatchGrid.h#newcode12 include/core/SkPatchGrid.h:12: #include "SkCanvas.h" On 2014/08/08 18:45:41, egdaniel wrote: > annoying ...
6 years, 4 months ago (2014-08-08 19:00:55 UTC) #8
dandov
Rebased the branch to include the changes to SkCanvas::drawPatch and adjusted SkPatchGrid to follow the ...
6 years, 4 months ago (2014-08-12 17:59:55 UTC) #9
reed1
I vote to put at least the header into include/utils for now, til we've used ...
6 years, 4 months ago (2014-08-12 19:44:07 UTC) #10
dandov
Moved SkPatchGrid.h and .cpp to src/utils
6 years, 4 months ago (2014-08-12 20:14:28 UTC) #11
reed1
lgtm
6 years, 4 months ago (2014-08-12 21:35:37 UTC) #12
dandov
The CQ bit was checked by dandov@google.com
6 years, 4 months ago (2014-08-12 21:52:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/451723003/120001
6 years, 4 months ago (2014-08-12 21:53:20 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: Build-Ubuntu13.10-Clang-x86_64-Debug-Trybot on tryserver.skia ...
6 years, 4 months ago (2014-08-12 22:01:48 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-12 22:05:15 UTC) #16
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/1161)
6 years, 4 months ago (2014-08-12 22:05:17 UTC) #17
dandov
The CQ bit was checked by dandov@google.com
6 years, 4 months ago (2014-08-13 00:04:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/451723003/140001
6 years, 4 months ago (2014-08-13 00:05:47 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 00:15:12 UTC) #20
Message was sent while issue was closed.
Change committed as cc03adb90901d226e8b0252a187b19a68fabcc42

Powered by Google App Engine
This is Rietveld 408576698