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

Issue 4272065: crash running dump render tree (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Scroggo
Modified:
13 years, 8 months ago
Reviewers:
bsalomon
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

crashes on canvas/philip/tests/2d.voidreturn.html

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixed style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
include/gpu/SkGr.h View 1 1 chunk +5 lines, -1 line 0 comments Download
src/gpu/SkGr.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 3
bsalomon
LGTM. I'll put a (partially completed) style guide on the Skia wiki soon. http://codereview.appspot.com/4272065/diff/1/include/gpu/SkGr.h File ...
13 years, 8 months ago (2011-03-23 14:37:27 UTC) #1
Scroggo
fixed style
13 years, 8 months ago (2011-03-23 14:56:26 UTC) #2
bsalomon
13 years, 8 months ago (2011-03-23 14:59:00 UTC) #3
LGTM

On Wed, Mar 23, 2011 at 10:56 AM, <Scroggo@gmail.com> wrote:

> Reviewers: bsalomon,
>
> Message:
> fixed style
>
> Description:
> crashes on canvas/philip/tests/2d.voidreturn.html
>
> Please review this at http://codereview.appspot.com/4272065/
>
> Affected files:
>  include/gpu/SkGr.h
>  src/gpu/SkGr.cpp
>
>
> Index: include/gpu/SkGr.h
> ===================================================================
> --- include/gpu/SkGr.h  (revision 983)
> +++ include/gpu/SkGr.h  (working copy)
> @@ -207,7 +207,11 @@
>     virtual GrSetOp getOp() const;
>
>     virtual void getRect(GrRect* rect) const {
> -        *rect = Sk2Gr(*fCurr->fRect);
> +        if (!fCurr->fRect) {
> +            rect->setEmpty();
> +        } else {
> +            *rect = Sk2Gr(*fCurr->fRect);
> +        }
>     }
>
>     virtual GrPathIter* getPathIter() {
> Index: src/gpu/SkGr.cpp
> ===================================================================
> --- src/gpu/SkGr.cpp    (revision 983)
> +++ src/gpu/SkGr.cpp    (working copy)
> @@ -166,10 +166,9 @@
>
>  GrClipType SkGrClipIterator::getType() const {
>     GrAssert(!this->isDone());
> -    if (NULL != fCurr->fRect) {
> +    if (NULL == fCurr->fPath) {
>         return kRect_ClipType;
>     } else {
> -        GrAssert(NULL != fCurr->fPath);
>         return kPath_ClipType;
>     }
>  }
>
>
>
Sign in to reply to this message.

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