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

Issue 19366008: Add getRectCount to SkRegtion (Closed)

Created:
7 years, 5 months ago by vmpstr
Modified:
7 years, 5 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add getRectCount to SkRegtion It is useful to know how many rects comprise a region, since in some situations we can optimize code based on the complexity of the region. For instance, if we use SkRegion for tracking invalidation we might opt to use the region bounds as invalidation instead of iterating over each rect. Committed: http://code.google.com/p/skia/source/detail?r=10129

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M include/core/SkRegion.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/core/SkRegion.cpp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
vmpstr
Please take a look.
7 years, 5 months ago (2013-07-16 19:40:45 UTC) #1
tomhudson
Assuming this is a response to https://code.google.com/p/chromium/issues/detail?id=260626 ? LGTM, but I'd like Mike or his ...
7 years, 5 months ago (2013-07-17 09:46:28 UTC) #2
vmpstr
On 2013/07/17 09:46:28, tomhudson wrote: > Assuming this is a response to > https://code.google.com/p/chromium/issues/detail?id=260626 ? ...
7 years, 5 months ago (2013-07-17 17:09:36 UTC) #3
robertphillips
Mike is OOO right now.
7 years, 5 months ago (2013-07-17 17:35:10 UTC) #4
caryclark
LGTM Before you check it in, please add to the SkRegion.h comment to note that ...
7 years, 5 months ago (2013-07-17 17:52:44 UTC) #5
bsalomon
On 2013/07/17 17:52:44, caryclark wrote: > LGTM > > Before you check it in, please ...
7 years, 5 months ago (2013-07-17 17:54:12 UTC) #6
caryclark
Also, I assume that SkRegion::isComplex() is not a suitable short-term substitute. Is that correct?
7 years, 5 months ago (2013-07-17 17:59:24 UTC) #7
vmpstr
On 2013/07/17 17:59:24, caryclark wrote: > Also, I assume that SkRegion::isComplex() is not a suitable ...
7 years, 5 months ago (2013-07-17 18:05:24 UTC) #8
vmpstr
Added a comment about this being experimental. Are you guys OK with me committing this?
7 years, 5 months ago (2013-07-17 18:14:05 UTC) #9
caryclark
lgtm
7 years, 5 months ago (2013-07-17 18:14:49 UTC) #10
caryclark
On 2013/07/17 18:14:49, caryclark wrote: > lgtm Mike just got in. Hold on a moment.
7 years, 5 months ago (2013-07-17 18:16:42 UTC) #11
reed1
https://codereview.chromium.org/19366008/diff/12001/include/core/SkRegion.h File include/core/SkRegion.h (right): https://codereview.chromium.org/19366008/diff/12001/include/core/SkRegion.h#newcode89 include/core/SkRegion.h:89: * Returns the number of rects that comprise this ...
7 years, 5 months ago (2013-07-17 19:14:36 UTC) #12
vmpstr
PTAL. https://codereview.chromium.org/19366008/diff/12001/include/core/SkRegion.h File include/core/SkRegion.h (right): https://codereview.chromium.org/19366008/diff/12001/include/core/SkRegion.h#newcode89 include/core/SkRegion.h:89: * Returns the number of rects that comprise ...
7 years, 5 months ago (2013-07-17 19:59:08 UTC) #13
reed1
lgtm
7 years, 5 months ago (2013-07-17 20:55:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/vmpstr@chromium.org/19366008/18001
7 years, 5 months ago (2013-07-17 21:09:24 UTC) #15
commit-bot: I haz the power
7 years, 5 months ago (2013-07-17 21:39:30 UTC) #16
Message was sent while issue was closed.
Change committed as 10129

Powered by Google App Engine
This is Rietveld 408576698