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

Issue 1144193006: Sky: Add a DrawLooper interface to the painting API to be used for shadows. (Closed)

Created:
5 years, 7 months ago by Matt Perry
Modified:
5 years, 6 months ago
Reviewers:
abarth-chromium
CC:
gregsimon, mojo-reviews_chromium.org, ojan, qsr+mojo_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Sky: Add a DrawLooper interface to the painting API to be used for shadows. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/3d8934bb8f51a29f997455dae582984306de40ab

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : resetWeakRef #

Patch Set 5 : copy paint instead of weak ref #

Patch Set 6 : chromium style #

Patch Set 7 : compiles #

Total comments: 1

Patch Set 8 : setPaint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -24 lines) Patch
M sky/engine/bindings/IDLExtendedAttributes.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M sky/engine/core/core.gni View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
A sky/engine/core/painting/DrawLooper.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A + sky/engine/core/painting/DrawLooper.cpp View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
A + sky/engine/core/painting/DrawLooper.idl View 1 chunk +2 lines, -1 line 0 comments Download
A sky/engine/core/painting/DrawLooperAddLayerCallback.h View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A + sky/engine/core/painting/DrawLooperAddLayerCallback.cpp View 1 2 3 4 5 1 chunk +2 lines, -7 lines 0 comments Download
A + sky/engine/core/painting/DrawLooperAddLayerCallback.idl View 1 chunk +2 lines, -2 lines 0 comments Download
A sky/engine/core/painting/DrawLooperLayerInfo.h View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
A + sky/engine/core/painting/DrawLooperLayerInfo.cpp View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
A sky/engine/core/painting/DrawLooperLayerInfo.idl View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A sky/engine/core/painting/LayerDrawLooperBuilder.h View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
A sky/engine/core/painting/LayerDrawLooperBuilder.cpp View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A sky/engine/core/painting/LayerDrawLooperBuilder.idl View 1 chunk +12 lines, -0 lines 0 comments Download
M sky/engine/core/painting/Paint.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M sky/engine/core/painting/Paint.cpp View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M sky/engine/core/painting/Paint.idl View 1 chunk +1 line, -0 lines 0 comments Download
M sky/examples/raw/painting.sky View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Matt Perry
Check out painting.sky first to see how the API is used.
5 years, 7 months ago (2015-05-26 21:20:15 UTC) #2
abarth-chromium
https://codereview.chromium.org/1144193006/diff/40001/sky/engine/core/painting/DrawLooperLayerInfo.idl File sky/engine/core/painting/DrawLooperLayerInfo.idl (right): https://codereview.chromium.org/1144193006/diff/40001/sky/engine/core/painting/DrawLooperLayerInfo.idl#newcode10 sky/engine/core/painting/DrawLooperLayerInfo.idl:10: // kEntirePaint_Bits means use the layer's paint completely. s/kEntirePaint_Bits/ENTIRE_PAINT_BITS/ ...
5 years, 7 months ago (2015-05-27 02:12:51 UTC) #3
Matt Perry
https://codereview.chromium.org/1144193006/diff/40001/sky/engine/core/painting/DrawLooperLayerInfo.idl File sky/engine/core/painting/DrawLooperLayerInfo.idl (right): https://codereview.chromium.org/1144193006/diff/40001/sky/engine/core/painting/DrawLooperLayerInfo.idl#newcode10 sky/engine/core/painting/DrawLooperLayerInfo.idl:10: // kEntirePaint_Bits means use the layer's paint completely. On ...
5 years, 7 months ago (2015-05-27 14:46:32 UTC) #4
abarth-chromium
On 2015/05/27 at 14:46:32, mpcomplete wrote: > Yeah, I'm using it with SkLayerDrawLooper::Builder::addLayerOnTop. The documentation ...
5 years, 7 months ago (2015-05-27 15:46:39 UTC) #5
Matt Perry
On 2015/05/27 15:46:39, abarth wrote: > On 2015/05/27 at 14:46:32, mpcomplete wrote: > > Yeah, ...
5 years, 7 months ago (2015-05-27 15:57:30 UTC) #6
Matt Perry
On 2015/05/27 15:57:30, Matt Perry wrote: > On 2015/05/27 15:46:39, abarth wrote: > > On ...
5 years, 7 months ago (2015-05-27 16:01:32 UTC) #7
abarth-chromium
Yeah, that's better. Is there a way we can do this without making Paint more ...
5 years, 7 months ago (2015-05-27 16:10:19 UTC) #8
Matt Perry
On 2015/05/27 16:10:19, abarth wrote: > Yeah, that's better. Is there a way we can ...
5 years, 7 months ago (2015-05-27 18:09:02 UTC) #9
abarth-chromium
IMHO, copying the paint is a bit better. If this pattern comes up again, we ...
5 years, 7 months ago (2015-05-27 18:09:58 UTC) #10
Matt Perry
On 2015/05/27 18:09:58, abarth wrote: > IMHO, copying the paint is a bit better. If ...
5 years, 7 months ago (2015-05-27 18:21:19 UTC) #11
abarth-chromium
lgtm https://codereview.chromium.org/1144193006/diff/120001/sky/engine/core/painting/Paint.h File sky/engine/core/painting/Paint.h (right): https://codereview.chromium.org/1144193006/diff/120001/sky/engine/core/painting/Paint.h#newcode39 sky/engine/core/painting/Paint.h:39: void set_paint(const SkPaint& paint) { m_paint = paint; ...
5 years, 7 months ago (2015-05-27 20:17:44 UTC) #12
Matt Perry
5 years, 7 months ago (2015-05-27 20:22:05 UTC) #13
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
3d8934bb8f51a29f997455dae582984306de40ab (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698