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

Issue 6937046: Goal: ensure we always balance lock/unlock pixels calls. (Closed)

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

Description

Goal: ensure we always balance lock/unlock pixels calls. A big caller of lockPixels is setContext in the bitmapshader. This change replaces beginSession/endSession with adding endContext(), and adds debugging code to ensure that 1. setContext calls are never nested 2. endContext is always called after each setContext call. Committed: https://code.google.com/p/skia/source/detail?r=6798

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -115 lines) Patch
M include/core/SkComposeShader.h View 1 chunk +4 lines, -5 lines 0 comments Download
M include/core/SkShader.h View 3 chunks +19 lines, -10 lines 0 comments Download
M src/core/SkBitmapProcShader.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkBitmapProcShader.cpp View 3 chunks +6 lines, -12 lines 0 comments Download
M src/core/SkBlitter.cpp View 4 chunks +31 lines, -21 lines 0 comments Download
M src/core/SkColorFilter.cpp View 1 2 chunks +16 lines, -12 lines 0 comments Download
M src/core/SkComposeShader.cpp View 1 2 3 chunks +23 lines, -15 lines 0 comments Download
M src/core/SkDraw.cpp View 6 chunks +11 lines, -9 lines 0 comments Download
M src/core/SkFilterShader.h View 1 chunk +6 lines, -8 lines 0 comments Download
M src/core/SkShader.cpp View 4 chunks +11 lines, -13 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 chunk +6 lines, -7 lines 0 comments Download

Messages

Total messages: 6
reed1
11 years, 11 months ago (2012-12-13 18:23:10 UTC) #1
Leon
lgtm https://codereview.appspot.com/6937046/diff/1/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.appspot.com/6937046/diff/1/src/core/SkBitmapProcShader.cpp#newcode203 src/core/SkBitmapProcShader.cpp:203: *ctx = &fState; Any concern that the caller ...
11 years, 11 months ago (2012-12-13 19:25:53 UTC) #2
reed1
https://codereview.appspot.com/6937046/diff/1/src/core/SkBitmapProcShader.cpp File src/core/SkBitmapProcShader.cpp (right): https://codereview.appspot.com/6937046/diff/1/src/core/SkBitmapProcShader.cpp#newcode203 src/core/SkBitmapProcShader.cpp:203: *ctx = &fState; On 2012/12/13 19:25:54, scroggo-work wrote: > ...
11 years, 11 months ago (2012-12-13 19:33:22 UTC) #3
Leon
https://codereview.appspot.com/6937046/diff/1/src/core/SkComposeShader.cpp File src/core/SkComposeShader.cpp (right): https://codereview.appspot.com/6937046/diff/1/src/core/SkComposeShader.cpp#newcode95 src/core/SkComposeShader.cpp:95: this->INHERITED::endContext(); On 2012/12/13 19:33:22, reed1 wrote: > On 2012/12/13 ...
11 years, 11 months ago (2012-12-13 19:40:31 UTC) #4
reed1
On 2012/12/13 19:40:31, scroggo-work wrote: > https://codereview.appspot.com/6937046/diff/1/src/core/SkComposeShader.cpp > File src/core/SkComposeShader.cpp (right): > > https://codereview.appspot.com/6937046/diff/1/src/core/SkComposeShader.cpp#newcode95 > ...
11 years, 11 months ago (2012-12-13 19:50:02 UTC) #5
Leon
11 years, 11 months ago (2012-12-13 19:51:41 UTC) #6
lgtm
Sign in to reply to this message.

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