Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1833)

Issue 6306086: Fixed two bugs in SW-only clip mask generation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by robertphillips
Modified:
12 years, 4 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

These two only show up when enabling the SW-only path for _all_ the clipping in gm. They could appear in general usage however. The flushTo recursion bug resulted in a crash while the missing clear when copying results back to the GPU bug resulted in everything outside of the path's bounding box being clipped away.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added render target param to GrGpu & GrContext clear calls #

Total comments: 2

Patch Set 3 : Addressed code review issues #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -45 lines) Patch
M include/gpu/GrContext.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 7 chunks +9 lines, -22 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/GrGpu.cpp View 1 1 chunk +14 lines, -1 line 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 4 chunks +22 lines, -4 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.cpp View 1 2 5 chunks +13 lines, -4 lines 3 comments Download
M src/gpu/GrSoftwarePathRenderer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrSoftwarePathRenderer.cpp View 1 2 3 chunks +21 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 8
robertphillips
http://codereview.appspot.com/6306086/diff/1/src/gpu/GrSoftwarePathRenderer.cpp File src/gpu/GrSoftwarePathRenderer.cpp (right): http://codereview.appspot.com/6306086/diff/1/src/gpu/GrSoftwarePathRenderer.cpp#newcode219 src/gpu/GrSoftwarePathRenderer.cpp:219: Moved here to toTexture can use it.
12 years, 4 months ago (2012-06-14 19:41:35 UTC) #1
robertphillips
Brian - I believe this addresses the issues we discussed.
12 years, 4 months ago (2012-06-18 14:38:14 UTC) #2
bsalomon
Mostly LGTM. Should we have a default param of NULL or a helper on target/context ...
12 years, 4 months ago (2012-06-18 15:09:08 UTC) #3
robertphillips
Added default NULL renderTarget parameter to new clear methods. Add ref/unref of renderTarget in GrInOrderDrawBuffer. ...
12 years, 4 months ago (2012-06-18 16:33:53 UTC) #4
bsalomon
http://codereview.appspot.com/6306086/diff/8001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): http://codereview.appspot.com/6306086/diff/8001/src/gpu/GrInOrderDrawBuffer.cpp#newcode465 src/gpu/GrInOrderDrawBuffer.cpp:465: GrSafeRef(clr.fRenderTarget); Now don't we also need to unref in ...
12 years, 4 months ago (2012-06-18 17:02:54 UTC) #5
robertphillips
http://codereview.appspot.com/6306086/diff/8001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): http://codereview.appspot.com/6306086/diff/8001/src/gpu/GrInOrderDrawBuffer.cpp#newcode465 src/gpu/GrInOrderDrawBuffer.cpp:465: GrSafeRef(clr.fRenderTarget); I put the unref in the destructor of ...
12 years, 4 months ago (2012-06-18 17:12:35 UTC) #6
bsalomon
LGTM http://codereview.appspot.com/6306086/diff/8001/src/gpu/GrInOrderDrawBuffer.cpp File src/gpu/GrInOrderDrawBuffer.cpp (right): http://codereview.appspot.com/6306086/diff/8001/src/gpu/GrInOrderDrawBuffer.cpp#newcode465 src/gpu/GrInOrderDrawBuffer.cpp:465: GrSafeRef(clr.fRenderTarget); On 2012/06/18 17:12:35, robertphillips wrote: > I ...
12 years, 4 months ago (2012-06-18 17:18:25 UTC) #7
robertphillips
12 years, 4 months ago (2012-06-21 20:16:19 UTC) #8
committed as r4290
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b