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

Issue 23392006: add SkDeviceLooper to handle larger-than-fixedpoint (Closed)

Created:
7 years, 4 months ago by reed1
Modified:
7 years, 3 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

add SkDeviceLooper to handle larger-than-fixedpoint BUG= Committed: https://code.google.com/p/skia/source/detail?r=10943

Patch Set 1 #

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -45 lines) Patch
M gyp/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/core/SkDeviceLooper.h View 1 chunk +69 lines, -0 lines 2 comments Download
A src/core/SkDeviceLooper.cpp View 1 chunk +97 lines, -0 lines 0 comments Download
M src/core/SkDraw.cpp View 3 chunks +50 lines, -41 lines 2 comments Download
M tests/DrawPathTest.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
reed1
First cut at a fix. If this idea works, might apply this to paths, which ...
7 years, 4 months ago (2013-08-23 21:54:34 UTC) #1
reed1
7 years, 4 months ago (2013-08-23 21:54:46 UTC) #2
reed1
ptal
7 years, 3 months ago (2013-08-26 16:27:28 UTC) #3
reed1
Committed patchset #2 manually as r10943.
7 years, 3 months ago (2013-08-27 17:53:58 UTC) #4
tomhudson
lgtm Sorry, Monday was a Bank Holiday in the UK and I'm still catching up ...
7 years, 3 months ago (2013-08-28 10:53:05 UTC) #5
reed1
7 years, 3 months ago (2013-08-28 12:35:07 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/23392006/diff/6001/src/core/SkDeviceLooper.h
File src/core/SkDeviceLooper.h (right):

https://codereview.chromium.org/23392006/diff/6001/src/core/SkDeviceLooper.h#...
src/core/SkDeviceLooper.h:15: class SkDeviceLooper {
On 2013/08/28 10:53:05, tomhudson wrote:
> Since this has state that changes the class semantics, can we get a little
> documentation here about the lifecycle?

Yes indeed, I will add dox.

https://codereview.chromium.org/23392006/diff/6001/src/core/SkDraw.cpp
File src/core/SkDraw.cpp (right):

https://codereview.chromium.org/23392006/diff/6001/src/core/SkDraw.cpp#newcod...
src/core/SkDraw.cpp:887: while (looper.next()) {
On 2013/08/28 10:53:05, tomhudson wrote:
> This injects another degree of indirection & bunch of allocations into every
> drawRect() call. For large cases it's only incidental, but do we have any perf
> tests that would capture impact on a page with a large number of small
rectangle
> draws?

There should be zero allocations in the (common) case where the rect fits inside
+- 16K. Is that not the case?

Powered by Google App Engine
This is Rietveld 408576698