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

Issue 340453003: Add getCurrentClipPath() to SkCanvas.

Created:
6 years, 6 months ago by zino
Modified:
6 years, 6 months ago
CC:
reviews_skia.org, robertphillips
Base URL:
https://chromium.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add getCurrentClipPath() to SkCanvas. BUG=skia:

Patch Set 1 #

Patch Set 2 : add SkCanvas::getCurrentClipPath() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M include/core/SkCanvas.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
zino
Please take a look. It is necessary for hit regions feature in Blink. (win_blink_compile_dbg)
6 years, 6 months ago (2014-06-17 07:58:54 UTC) #1
reed1
I'm not sure we want to have clients use ClipStack, as it may need to ...
6 years, 6 months ago (2014-06-17 13:49:43 UTC) #2
zino
On 2014/06/17 13:49:43, reed1 wrote: > I'm not sure we want to have clients use ...
6 years, 6 months ago (2014-06-17 13:57:29 UTC) #3
zino
On 2014/06/17 13:57:29, zino wrote: > On 2014/06/17 13:49:43, reed1 wrote: > > I'm not ...
6 years, 6 months ago (2014-06-17 13:59:08 UTC) #4
Justin Novosad
On 2014/06/17 13:59:08, zino wrote: > On 2014/06/17 13:57:29, zino wrote: > > On 2014/06/17 ...
6 years, 6 months ago (2014-06-17 14:35:04 UTC) #5
zino
On 2014/06/17 14:35:04, junov wrote: > On 2014/06/17 13:59:08, zino wrote: > > On 2014/06/17 ...
6 years, 6 months ago (2014-06-18 02:31:34 UTC) #6
reed1
Why are we adding this? Is this different than florin's idea for hit-regions?
6 years, 6 months ago (2014-06-18 12:49:43 UTC) #7
zino
On 2014/06/18 12:49:43, reed1 wrote: > Why are we adding this? Is this different than ...
6 years, 6 months ago (2014-06-18 13:09:59 UTC) #8
f(malita)
On 2014/06/18 12:49:43, reed1 wrote: > Is this different than florin's idea for hit-regions? Looks ...
6 years, 6 months ago (2014-06-18 13:14:30 UTC) #9
zino
On 2014/06/18 13:14:30, Florin Malita wrote: > On 2014/06/18 12:49:43, reed1 wrote: > > Is ...
6 years, 6 months ago (2014-06-19 08:49:24 UTC) #10
reed1
6 years, 6 months ago (2014-06-19 13:12:44 UTC) #11
On 2014/06/19 08:49:24, zino wrote:
> On 2014/06/18 13:14:30, Florin Malita wrote:
> > On 2014/06/18 12:49:43, reed1 wrote:
> > > Is this different than florin's idea for hit-regions?
> > 
> > Looks like empty-clip rejection is not the only reason for it. As spec'd,
hit
> > regions need an intersect-this-path-with-the-current-clip logical op.
> 
> IMHO, getCurrentClipPath() will still be needed even if there wasn't
> path-intersection op.
> We should be able to check whether a hit point falls in the clipping path. (if
> hit region takes a clipping int account)
> 
> So, could you please review this?

I think this is exposing more than we want to. I am following the other thread
on the spec itself (for hittest region), and looking for a more conservative way
to either change the spec to be more performance friendly, or to find some other
way to support it.

Powered by Google App Engine
This is Rietveld 408576698