Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Issue 15907023: Make SkDrawCommands lighter weight (Closed)

Created:
7 years, 6 months ago by robertphillips
Modified:
7 years, 6 months ago
Reviewers:
jvanverth1, djsollen
CC:
skia-review_googlegroups.com, jvanverth1
Visibility:
Public.

Description

There are two main reasons for this change: 1) captured _canvas_ skps tend to have a lot more drawBitmap* commands then web page skps and, as is, the current system often runs out of memory 2) this should speed up the filter tool when testing out potential optimizations Note: this CL also extends debug rendering to ovals, round rects, paints and points.

Patch Set 1 #

Patch Set 2 : removed cruft #

Total comments: 4

Patch Set 3 : Addressed code review comments #

Total comments: 2

Patch Set 4 : Addressed code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -156 lines) Patch
M debugger/QT/SkImageWidget.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M debugger/QT/SkImageWidget.cpp View 1 2 2 chunks +13 lines, -9 lines 0 comments Download
M debugger/SkDebugCanvas.cpp View 1 4 chunks +8 lines, -89 lines 0 comments Download
M debugger/SkDrawCommand.h View 14 chunks +20 lines, -26 lines 0 comments Download
M debugger/SkDrawCommand.cpp View 1 2 3 19 chunks +169 lines, -31 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
robertphillips
7 years, 6 months ago (2013-06-05 20:36:18 UTC) #1
jvanverth1
A couple of questions: https://codereview.chromium.org/15907023/diff/2001/debugger/QT/SkImageWidget.cpp File debugger/QT/SkImageWidget.cpp (right): https://codereview.chromium.org/15907023/diff/2001/debugger/QT/SkImageWidget.cpp#newcode18 debugger/QT/SkImageWidget.cpp:18: Why not declare fPixels as ...
7 years, 6 months ago (2013-06-05 21:48:02 UTC) #2
robertphillips
https://codereview.chromium.org/15907023/diff/2001/debugger/QT/SkImageWidget.cpp File debugger/QT/SkImageWidget.cpp (right): https://codereview.chromium.org/15907023/diff/2001/debugger/QT/SkImageWidget.cpp#newcode18 debugger/QT/SkImageWidget.cpp:18: On 2013/06/05 21:48:02, JimVV wrote: > Why not declare ...
7 years, 6 months ago (2013-06-05 22:00:12 UTC) #3
djsollen
lgtm with one nit https://codereview.chromium.org/15907023/diff/8001/debugger/SkDrawCommand.cpp File debugger/SkDrawCommand.cpp (right): https://codereview.chromium.org/15907023/diff/8001/debugger/SkDrawCommand.cpp#newcode97 debugger/SkDrawCommand.cpp:97: canvas->scale(SkDoubleToScalar((0.9*size.fWidth)/bounds.width()), make this a variable
7 years, 6 months ago (2013-06-06 21:17:00 UTC) #4
robertphillips
7 years, 6 months ago (2013-06-07 00:00:17 UTC) #5
committed as r9470

https://codereview.chromium.org/15907023/diff/8001/debugger/SkDrawCommand.cpp
File debugger/SkDrawCommand.cpp (right):

https://codereview.chromium.org/15907023/diff/8001/debugger/SkDrawCommand.cpp...
debugger/SkDrawCommand.cpp:97:
canvas->scale(SkDoubleToScalar((0.9*size.fWidth)/bounds.width()),
On 2013/06/06 21:17:00, djsollen wrote:
> make this a variable

Done.

Powered by Google App Engine
This is Rietveld 408576698