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

Issue 6450096: Refactoring into a public facing facing SkDebugger class first pass. (Closed)

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

Description

Refactoring into a public facing facing SkDebugger class first pass. Committed: https://code.google.com/p/skia/source/detail?r=4986

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Addressed Dereks comment about SkRefCnt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -234 lines) Patch
M debugger/QT/SkCanvasWidget.h View 3 chunks +3 lines, -70 lines 0 comments Download
M debugger/QT/SkCanvasWidget.cpp View 4 chunks +21 lines, -41 lines 0 comments Download
M debugger/QT/SkDebuggerGUI.h View 2 chunks +2 lines, -1 line 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 12 chunks +36 lines, -44 lines 0 comments Download
M debugger/QT/SkGLWidget.h View 3 chunks +4 lines, -21 lines 0 comments Download
M debugger/QT/SkGLWidget.cpp View 2 chunks +11 lines, -11 lines 0 comments Download
M debugger/QT/SkRasterWidget.h View 3 chunks +4 lines, -31 lines 0 comments Download
M debugger/QT/SkRasterWidget.cpp View 2 chunks +5 lines, -7 lines 0 comments Download
M debugger/SkDebugCanvas.h View 1 chunk +1 line, -1 line 0 comments Download
M debugger/SkDebugCanvas.cpp View 1 chunk +1 line, -1 line 0 comments Download
A debugger/SkDebugger.h View 1 1 chunk +112 lines, -0 lines 0 comments Download
M debugger/SkDebugger.cpp View 1 2 1 chunk +34 lines, -7 lines 0 comments Download
A + debugger/debuggermain.cpp View 0 chunks +-1 lines, --1 lines 0 comments Download
M gyp/debugger.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7
chudy
12 years, 3 months ago (2012-08-06 16:33:05 UTC) #1
DerekS
http://codereview.appspot.com/6450096/diff/2001/debugger/SkDebugger.h File debugger/SkDebugger.h (right): http://codereview.appspot.com/6450096/diff/2001/debugger/SkDebugger.h#newcode26 debugger/SkDebugger.h:26: void draw(SkCanvas* canvas) { is the plan to keep ...
12 years, 3 months ago (2012-08-06 17:40:48 UTC) #2
chudy
Addressed patch 1 comments http://codereview.appspot.com/6450096/diff/2001/debugger/SkDebugger.h File debugger/SkDebugger.h (right): http://codereview.appspot.com/6450096/diff/2001/debugger/SkDebugger.h#newcode26 debugger/SkDebugger.h:26: void draw(SkCanvas* canvas) { On ...
12 years, 3 months ago (2012-08-06 18:50:24 UTC) #3
DerekS
do you want me to review the CL again or are you still making changes?
12 years, 3 months ago (2012-08-07 13:43:26 UTC) #4
chudy
I'm making changes in a seperate CL on top of this one On Tue, Aug ...
12 years, 3 months ago (2012-08-07 13:45:06 UTC) #5
DerekS
lgtm with one nit http://codereview.appspot.com/6450096/diff/9001/debugger/SkDebugger.cpp File debugger/SkDebugger.cpp (right): http://codereview.appspot.com/6450096/diff/9001/debugger/SkDebugger.cpp#newcode27 debugger/SkDebugger.cpp:27: SkSafeUnref(fPicture); if you follow my ...
12 years, 3 months ago (2012-08-07 15:28:42 UTC) #6
chudy
12 years, 3 months ago (2012-08-07 16:13:32 UTC) #7
Comment fixed. Committed as revision 4986. Thanks for the review

http://codereview.appspot.com/6450096/diff/9001/debugger/SkDebugger.cpp
File debugger/SkDebugger.cpp (right):

http://codereview.appspot.com/6450096/diff/9001/debugger/SkDebugger.cpp#newco...
debugger/SkDebugger.cpp:27: SkSafeUnref(fPicture);
On 2012/08/07 15:28:42, DerekS wrote:
> if you follow my comment below you won't need this as the wrapper will do it
for
> you.

Done.

http://codereview.appspot.com/6450096/diff/9001/debugger/SkDebugger.cpp#newco...
debugger/SkDebugger.cpp:36: fPicture->ref();
On 2012/08/07 15:28:42, DerekS wrote:
> to avoid this we can define fPicture as follows which will take care of the
ref
> counting
> 
> SkRefCnt_SafeAssign(...)

Done.
Sign in to reply to this message.

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