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

Issue 6350098: SkHitBox added (Closed)

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

Description

SkHitBox added. SkHitBox is a class that determines which draw command is associated with the pixel located at x,y. By calculating a single point instead of the entire bitmap at once there is no visible performance slowdown.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Optimized redraw calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -20 lines) Patch
M debugger/QT/SkCanvasWidget.h View 1 chunk +1 line, -0 lines 0 comments Download
M debugger/QT/SkCanvasWidget.cpp View 1 4 chunks +7 lines, -3 lines 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M debugger/QT/SkSettingsWidget.h View 2 chunks +6 lines, -1 line 0 comments Download
M debugger/QT/SkSettingsWidget.cpp View 4 chunks +20 lines, -1 line 0 comments Download
M debugger/QT/moc_SkCanvasWidget.cpp View 5 chunks +14 lines, -5 lines 0 comments Download
M debugger/QT/moc_SkSettingsWidget.cpp View 5 chunks +6 lines, -4 lines 0 comments Download
M debugger/SkDebugCanvas.h View 1 4 chunks +22 lines, -1 line 0 comments Download
M debugger/SkDebugCanvas.cpp View 1 2 chunks +5 lines, -4 lines 0 comments Download
A debugger/SkHitBox.h View 1 chunk +81 lines, -0 lines 0 comments Download
A debugger/SkHitBox.cpp View 1 chunk +66 lines, -0 lines 0 comments Download
M gyp/debugger.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 1
chudy
11 years, 11 months ago (2012-07-11 19:45:59 UTC) #1
Definitely could use suggestions when it comes to naming conventions but it
works. Calculating a single point is pretty much instantaneous, even in debug
mode.

I kept the code to calculate every pixel in there in case we find a cool use for
it but I can trash it as well if nothing comes to mind.

https://codereview.appspot.com/6350098/diff/1/debugger/QT/SkDebuggerGUI.cpp
File debugger/QT/SkDebuggerGUI.cpp (right):

https://codereview.appspot.com/6350098/diff/1/debugger/QT/SkDebuggerGUI.cpp#n...
debugger/QT/SkDebuggerGUI.cpp:74: connect(fSettingsWidget.getCommandCheckBox(),
SIGNAL(toggled(bool)),
This was a bug I fixed that I lumped into this CL for the sake of brevity.
Sign in to reply to this message.

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