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

Issue 6355050: idea: add annotation to SkPaint (Closed)

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

Description

idea: add annotation to SkPaint Committed: https://code.google.com/p/skia/source/detail?r=4555

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -4 lines) Patch
M gyp/core.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M gyp/tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A include/core/SkAnnotation.h View 1 2 3 4 5 6 7 1 chunk +87 lines, -0 lines 0 comments Download
M include/core/SkPaint.h View 1 2 3 4 5 6 7 3 chunks +20 lines, -1 line 0 comments Download
A src/core/SkAnnotation.cpp View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 4 5 6 7 14 chunks +24 lines, -3 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
A tests/AnnotationTest.cpp View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 18
reed1
Not sure at all that SkMetaData is the right level of features for storing annotation ...
12 years, 5 months ago (2012-06-29 13:37:25 UTC) #1
bungeman
SkMetaData seems like a nice way to pass named parameters. https://codereview.appspot.com/6355050/diff/1/include/core/SkAnnotation.h File include/core/SkAnnotation.h (right): https://codereview.appspot.com/6355050/diff/1/include/core/SkAnnotation.h#newcode30 ...
12 years, 5 months ago (2012-06-29 14:33:32 UTC) #2
Steve VanDeBogart
https://codereview.appspot.com/6355050/diff/1/include/core/SkAnnotation.h File include/core/SkAnnotation.h (right): https://codereview.appspot.com/6355050/diff/1/include/core/SkAnnotation.h#newcode17 include/core/SkAnnotation.h:17: kDontDraw_Flag = 1 << 0, This means don't draw ...
12 years, 5 months ago (2012-06-29 17:09:20 UTC) #3
reed1
Yes, the point of the flag was to tell skia to not draw the primitive. ...
12 years, 5 months ago (2012-06-29 18:58:28 UTC) #4
bsalomon
On 2012/06/29 18:58:28, reed1 wrote: > Yes, the point of the flag was to tell ...
12 years, 5 months ago (2012-06-29 19:37:09 UTC) #5
Steve VanDeBogart
On 2012/06/29 18:58:28, reed1 wrote: > Yes, the point of the flag was to tell ...
12 years, 5 months ago (2012-06-29 20:13:14 UTC) #6
reed1
patch #3 experiment: - add type (string) - restrict metadata to just SkData (nice for ...
12 years, 5 months ago (2012-06-29 20:42:59 UTC) #7
Steve VanDeBogart
I would propose the following, but patch set 3 is fine by me as well. ...
12 years, 5 months ago (2012-06-29 20:51:27 UTC) #8
reed1
I think I understand. restrict it to a single data blob for now, and use ...
12 years, 5 months ago (2012-06-29 20:59:34 UTC) #9
Steve VanDeBogart
On 2012/06/29 20:59:34, reed1 wrote: > I think I understand. restrict it to a single ...
12 years, 5 months ago (2012-06-29 21:01:53 UTC) #10
reed1
Since we will undoubtedly change our mind going forward, I also propose we add a ...
12 years, 5 months ago (2012-06-29 21:11:29 UTC) #11
Steve VanDeBogart
On 2012/06/29 21:11:29, reed1 wrote: > Since we will undoubtedly change our mind going forward, ...
12 years, 5 months ago (2012-06-29 21:23:16 UTC) #12
reed1
patch #4 - add unit-test, to help document dictionary behavior - hide methods we may ...
12 years, 5 months ago (2012-07-02 20:32:02 UTC) #13
Steve VanDeBogart
On 2012/07/02 20:32:02, reed1 wrote: > patch #4 > > - add unit-test, to help ...
12 years, 5 months ago (2012-07-09 20:03:15 UTC) #14
reed1
patch #7 SkAnnotationRectWithURL(...) Helper function to allow this to be used by Chrome, but hiding ...
12 years, 5 months ago (2012-07-10 20:42:14 UTC) #15
reed1
patch #8 Summary (ready for review/checkin) 1. Only the helper function SkAnnotateRectWithURL() should be used ...
12 years, 5 months ago (2012-07-11 19:27:39 UTC) #16
bungeman
LGTM, even if it does punt on the type. On 2012/07/11 19:27:39, reed1 wrote: > ...
12 years, 5 months ago (2012-07-11 19:35:11 UTC) #17
bsalomon
12 years, 5 months ago (2012-07-11 19:43:49 UTC) #18
LGTM

On 2012/07/11 19:35:11, bungeman wrote:
> LGTM, even if it does punt on the type.
> 
> On 2012/07/11 19:27:39, reed1 wrote:
> > patch #8 Summary (ready for review/checkin)
> > 
> > 1. Only the helper function SkAnnotateRectWithURL() should be used publicly
> for
> > now
> > 2. Annotations are immutable, which allows SkPaint to cache if it is in a
> > no-draw state, which can be queried via an inline test.
> > 3. Devices have to opt-out for now if they shouldn't draw the annotation.
> Raster
> > and GPU are doing that for rects/paths, which should be enough for now.
> > 
> > Next:
> > 
> > 4. PDF and XPS should respect the URL annotation, and opt-out for all
> > no-draw-annotations
> > 
> > Later optimization idea:
> > 
> > 5. Have canvas know that its Device never wants any no-draw-annotations, and
> > have it opt-out before it calls the device.
Sign in to reply to this message.

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