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

Issue 23484007: call drawRect to try GrAARectRenderer if the path is a rect (Closed)

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

Description

If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get better performance. Committed: http://code.google.com/p/skia/source/detail?r=11842 R=bsalomon@google.com Committed: https://code.google.com/p/skia/source/detail?r=11904

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : if the path is a rect, call drawRect in SkCanvas::drawPath for potential accelerated rasterization … #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : move onDrawRect and onDrawPath to protected if they are public #

Patch Set 10 : Make drawRect and drawPath virtual #

Patch Set 11 : Make drawRect and drawPath virtual #

Patch Set 12 : Make drawRect and drawPath virtual, try again keep getting base file missing msgs #

Patch Set 13 : check for inverse fill #

Total comments: 2

Patch Set 14 : add tests to ignored-tests.txt #

Patch Set 15 : add tests to ignored-tests.txt #

Patch Set 16 : add tests to ignored-tests.txt #

Patch Set 17 : rebase to ToT #

Patch Set 18 : newline at end of ignored-tests.txt #

Patch Set 19 : rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -54 lines) Patch
expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +8 lines, -0 lines 0 comments Download
experimental/PdfViewer/SkNulCanvas.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
experimental/SimpleCocoaApp/SimpleApp.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +22 lines, -4 lines 0 comments Download
include/utils/SkDeferredCanvas.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
include/utils/SkDumpCanvas.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
include/utils/SkLuaCanvas.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
include/utils/SkNWayCanvas.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
include/utils/SkProxyCanvas.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
src/core/SkBBoxRecord.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
src/core/SkBBoxRecord.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
src/pipe/SkGPipeWrite.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -4 lines 0 comments Download
src/utils/SkDeferredCanvas.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
src/utils/SkDumpCanvas.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
src/utils/SkLuaCanvas.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
src/utils/SkNWayCanvas.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
src/utils/SkProxyCanvas.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
src/utils/debugger/SkDebugCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -4 lines 0 comments Download
src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
tests/TileGridTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
yunchao
if the path is a rect, for miter-stroke rect or a hairline-stroke rect, call drawRect ...
7 years, 3 months ago (2013-08-29 09:40:00 UTC) #1
bsalomon
This makes sense for the GPU device. Adding Mike to make a call about whether ...
7 years, 3 months ago (2013-08-29 12:49:58 UTC) #2
bsalomon
This makes sense for the GPU device. Adding Mike to make a call about whether ...
7 years, 3 months ago (2013-08-29 12:50:20 UTC) #3
yunchao
On 2013/08/29 12:50:20, bsalomon wrote: > This makes sense for the GPU device. Adding Mike ...
7 years, 3 months ago (2013-08-29 13:11:53 UTC) #4
yunchao
On 2013/08/29 13:11:53, yunchao wrote: > On 2013/08/29 12:50:20, bsalomon wrote: > > This makes ...
7 years, 3 months ago (2013-09-02 08:51:41 UTC) #5
bsalomon
On 2013/09/02 08:51:41, yunchao wrote: > On 2013/08/29 13:11:53, yunchao wrote: > > On 2013/08/29 ...
7 years, 3 months ago (2013-09-05 13:25:52 UTC) #6
yunchao
On 2013/09/05 13:25:52, bsalomon wrote: > On 2013/09/02 08:51:41, yunchao wrote: > > On 2013/08/29 ...
7 years, 3 months ago (2013-09-10 09:17:19 UTC) #7
bsalomon
On 2013/09/10 09:17:19, yunchao wrote: > On 2013/09/05 13:25:52, bsalomon wrote: > > On 2013/09/02 ...
7 years, 3 months ago (2013-09-10 14:39:06 UTC) #8
yunchao
On 2013/09/10 14:39:06, bsalomon wrote: > On 2013/09/10 09:17:19, yunchao wrote: > > On 2013/09/05 ...
7 years, 3 months ago (2013-09-11 05:55:45 UTC) #9
bsalomon
On 2013/09/11 05:55:45, yunchao wrote: > On 2013/09/10 14:39:06, bsalomon wrote: > > On 2013/09/10 ...
7 years, 3 months ago (2013-09-11 13:58:50 UTC) #10
yunchao
On 2013/09/11 13:58:50, bsalomon wrote: > On 2013/09/11 05:55:45, yunchao wrote: > > On 2013/09/10 ...
7 years, 3 months ago (2013-09-18 09:33:57 UTC) #11
bsalomon
On 2013/09/18 09:33:57, yunchao wrote: > On 2013/09/11 13:58:50, bsalomon wrote: > > On 2013/09/11 ...
7 years, 3 months ago (2013-09-23 17:55:04 UTC) #12
yunchao
On 2013/09/23 17:55:04, bsalomon wrote: > On 2013/09/18 09:33:57, yunchao wrote: > > On 2013/09/11 ...
7 years, 2 months ago (2013-10-15 09:11:34 UTC) #13
bsalomon
Hi Yunchao, I noted two small issues inline below. I'll check if Chromium has its ...
7 years, 2 months ago (2013-10-15 13:25:51 UTC) #14
yunchao
On 2013/10/15 13:25:51, bsalomon wrote: > Hi Yunchao, I noted two small issues inline below. ...
7 years, 2 months ago (2013-10-16 07:22:51 UTC) #15
bsalomon
Yunchao, It basically looks good to me. I went ahead and made drawRect and drawPath ...
7 years, 2 months ago (2013-10-16 19:03:14 UTC) #16
yunchao
On 2013/10/16 19:03:14, bsalomon wrote: > Yunchao, It basically looks good to me. I went ...
7 years, 2 months ago (2013-10-17 09:15:19 UTC) #17
bsalomon
lgtm, and Mike gave a verbal lgtm.
7 years, 2 months ago (2013-10-17 14:48:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yunchao.he@intel.com/23484007/70001
7 years, 2 months ago (2013-10-17 14:49:08 UTC) #19
commit-bot: I haz the power
Change committed as 11842
7 years, 2 months ago (2013-10-17 16:29:29 UTC) #20
robertphillips
This was reverted in 11845 due to image changes to the following GMs: inverse_paths pathopsinverse ...
7 years, 2 months ago (2013-10-17 17:35:50 UTC) #21
bsalomon
On 2013/10/17 17:35:50, robertphillips wrote: > This was reverted in 11845 due to image changes ...
7 years, 2 months ago (2013-10-18 22:10:46 UTC) #22
yunchao
https://codereview.chromium.org/23484007/diff/79001/src/utils/debugger/SkDebugCanvas.cpp File src/utils/debugger/SkDebugCanvas.cpp (right): https://codereview.chromium.org/23484007/diff/79001/src/utils/debugger/SkDebugCanvas.cpp#newcode112 src/utils/debugger/SkDebugCanvas.cpp:112: // The OverdrawFilter modifies every paint to use an ...
7 years, 2 months ago (2013-10-21 05:51:26 UTC) #23
yunchao
On 2013/10/18 22:10:46, bsalomon wrote: > On 2013/10/17 17:35:50, robertphillips wrote: > > This was ...
7 years, 2 months ago (2013-10-21 06:33:21 UTC) #24
bsalomon
https://codereview.chromium.org/23484007/diff/79001/src/utils/debugger/SkDebugCanvas.cpp File src/utils/debugger/SkDebugCanvas.cpp (right): https://codereview.chromium.org/23484007/diff/79001/src/utils/debugger/SkDebugCanvas.cpp#newcode112 src/utils/debugger/SkDebugCanvas.cpp:112: // The OverdrawFilter modifies every paint to use an ...
7 years, 2 months ago (2013-10-21 13:14:43 UTC) #25
yunchao
On 2013/10/21 13:14:43, bsalomon wrote: Hi, Brian, I just tried the gm case of rects ...
7 years, 2 months ago (2013-10-21 15:13:42 UTC) #26
bsalomon
On 2013/10/21 15:13:42, yunchao wrote: > On 2013/10/21 13:14:43, bsalomon wrote: > > Hi, Brian, ...
7 years, 2 months ago (2013-10-21 16:33:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yunchao.he@intel.com/23484007/369001
7 years, 2 months ago (2013-10-21 16:34:12 UTC) #28
commit-bot: I haz the power
Failed to apply patch for expectations/gm/ignored-tests.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-21 16:34:19 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yunchao.he@intel.com/23484007/449001
7 years, 2 months ago (2013-10-21 17:36:35 UTC) #30
commit-bot: I haz the power
Failed to apply patch for expectations/gm/ignored-tests.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-21 17:36:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yunchao.he@intel.com/23484007/449001
7 years, 2 months ago (2013-10-22 01:09:01 UTC) #32
commit-bot: I haz the power
Failed to apply patch for expectations/gm/ignored-tests.txt: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-22 01:09:08 UTC) #33
bsalomon
On 2013/10/22 01:09:08, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
7 years, 2 months ago (2013-10-22 13:13:47 UTC) #34
bsalomon
Committed patchset #19 manually as r11904 (presubmit successful).
7 years, 2 months ago (2013-10-22 13:19:42 UTC) #35
yunchao
On 2013/10/22 13:19:42, bsalomon wrote: > Committed patchset #19 manually as r11904 (presubmit successful). Hi, ...
7 years, 2 months ago (2013-10-23 06:57:05 UTC) #36
bsalomon
On 2013/10/23 06:57:05, yunchao wrote: > On 2013/10/22 13:19:42, bsalomon wrote: > > Committed patchset ...
7 years, 2 months ago (2013-10-23 13:22:52 UTC) #37
yunchao
On 2013/10/23 13:22:52, bsalomon wrote: > On 2013/10/23 06:57:05, yunchao wrote: > > On 2013/10/22 ...
7 years, 1 month ago (2013-10-30 07:24:52 UTC) #38
bsalomon
On 2013/10/30 07:24:52, yunchao wrote: > On 2013/10/23 13:22:52, bsalomon wrote: > > On 2013/10/23 ...
7 years, 1 month ago (2013-10-30 13:46:28 UTC) #39
yunchao
On 2013/10/30 13:46:28, bsalomon wrote: > On 2013/10/30 07:24:52, yunchao wrote: > > On 2013/10/23 ...
7 years, 1 month ago (2013-10-31 08:45:36 UTC) #40
yunchao
6 years, 9 months ago (2014-03-19 06:54:56 UTC) #41
Hi Brian, I will rebase this CL to latest Skia code. I think the performance
improvement still exists, and the bug in LayoutTest has been fixed. What's your
opinion?

Powered by Google App Engine
This is Rietveld 408576698