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

Issue 6850082: Add drawing of paths to debugger (Closed)

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

Description

This CL adds a new pane to the debugger that displays the current path if the current command is either a clipPath or a drawPath.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed code review issues (mainly moving stuff from heap to stack) #

Patch Set 3 : Removed some debugging code that crept in #

Total comments: 8

Patch Set 4 : Addressed code review issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -11 lines) Patch
M debugger/QT/SkDebuggerGUI.h View 2 chunks +4 lines, -1 line 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 1 2 3 9 chunks +22 lines, -4 lines 0 comments Download
A debugger/QT/SkImageWidget.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A debugger/QT/SkImageWidget.cpp View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M debugger/SkDebugCanvas.cpp View 1 2 3 3 chunks +36 lines, -2 lines 0 comments Download
M debugger/SkDrawCommand.h View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M debugger/SkDrawCommand.cpp View 1 4 chunks +12 lines, -2 lines 0 comments Download
M gyp/debugger.gyp View 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5
robertphillips
11 years, 6 months ago (2012-11-20 21:43:35 UTC) #1
DerekS
https://codereview.appspot.com/6850082/diff/1/debugger/QT/SkImageWidget.h File debugger/QT/SkImageWidget.h (right): https://codereview.appspot.com/6850082/diff/1/debugger/QT/SkImageWidget.h#newcode5 debugger/QT/SkImageWidget.h:5: * Author: chudy replace this with our standard header ...
11 years, 6 months ago (2012-11-21 13:33:46 UTC) #2
robertphillips
https://codereview.appspot.com/6850082/diff/1/debugger/QT/SkImageWidget.h File debugger/QT/SkImageWidget.h (right): https://codereview.appspot.com/6850082/diff/1/debugger/QT/SkImageWidget.h#newcode5 debugger/QT/SkImageWidget.h:5: * Author: chudy On 2012/11/21 13:33:47, DerekS wrote: > ...
11 years, 6 months ago (2012-11-21 16:06:20 UTC) #3
DerekS
lgtm with the following nits. https://codereview.appspot.com/6850082/diff/11002/debugger/QT/SkImageWidget.cpp File debugger/QT/SkImageWidget.cpp (right): https://codereview.appspot.com/6850082/diff/11002/debugger/QT/SkImageWidget.cpp#newcode48 debugger/QT/SkImageWidget.cpp:48: painter.drawRect(0, 0, 256, 256); ...
11 years, 6 months ago (2012-11-21 16:24:45 UTC) #4
robertphillips
11 years, 6 months ago (2012-11-21 17:11:35 UTC) #5
committed as r6532

https://codereview.appspot.com/6850082/diff/11002/debugger/QT/SkImageWidget.cpp
File debugger/QT/SkImageWidget.cpp (right):

https://codereview.appspot.com/6850082/diff/11002/debugger/QT/SkImageWidget.c...
debugger/QT/SkImageWidget.cpp:48: painter.drawRect(0, 0, 256, 256);
All the 256's devolve from the image widget's size. I have just changed them all
to use constants from the image widget class.

https://codereview.appspot.com/6850082/diff/11002/debugger/SkDebugCanvas.cpp
File debugger/SkDebugCanvas.cpp (right):

https://codereview.appspot.com/6850082/diff/11002/debugger/SkDebugCanvas.cpp#...
debugger/SkDebugCanvas.cpp:177: SkDevice* device = new SkDevice(bitmap);
On 2012/11/21 16:24:45, DerekS wrote:
> don't you need to unref this after assigning it to the canvas?

Done.

https://codereview.appspot.com/6850082/diff/11002/debugger/SkDebugCanvas.cpp#...
debugger/SkDebugCanvas.cpp:202: 
On 2012/11/21 16:24:45, DerekS wrote:
> remove space

Done.

https://codereview.appspot.com/6850082/diff/11002/debugger/SkDebugCanvas.cpp#...
debugger/SkDebugCanvas.cpp:251: 
On 2012/11/21 16:24:45, DerekS wrote:
> remove space

Done.
Sign in to reply to this message.

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