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

Issue 1158883004: Add TransferMode to dart:sky, and use it instead of passing ints around. (Closed)

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

Description

Add TransferMode to dart:sky, and use it instead of passing ints around. Also use Point in place of passing 2 ints to the DrawLooper API. R=eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/c2ace8a3e256e2f78e2ec1f7e1001ef47e2f5983

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : rm comment #

Total comments: 5

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -23 lines) Patch
M sky/engine/bindings/scripts/dart_types.py View 1 2 3 4 6 chunks +15 lines, -3 lines 0 comments Download
M sky/engine/core/core.gni View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M sky/engine/core/painting/ColorFilter.h View 2 chunks +4 lines, -1 line 0 comments Download
M sky/engine/core/painting/ColorFilter.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M sky/engine/core/painting/ColorFilter.idl View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M sky/engine/core/painting/DrawLooperLayerInfo.h View 2 chunks +4 lines, -4 lines 0 comments Download
M sky/engine/core/painting/DrawLooperLayerInfo.idl View 2 chunks +3 lines, -4 lines 0 comments Download
A sky/engine/core/painting/TransferMode.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A sky/engine/core/painting/TransferMode.cpp View 1 1 chunk +36 lines, -0 lines 0 comments Download
A sky/engine/core/painting/TransferMode.dart View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
M sky/examples/raw/painting.sky View 1 chunk +10 lines, -4 lines 0 comments Download
M sky/examples/raw/shadow.dart View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
Matt Perry
5 years, 6 months ago (2015-06-01 21:45:27 UTC) #2
eseidel
5 years, 6 months ago (2015-06-01 21:47:39 UTC) #3
eseidel
lgtm This is gorgeous. Excepting the ugly fake-enum. https://codereview.chromium.org/1158883004/diff/60001/sky/engine/core/painting/TransferMode.dart File sky/engine/core/painting/TransferMode.dart (right): https://codereview.chromium.org/1158883004/diff/60001/sky/engine/core/painting/TransferMode.dart#newcode15 sky/engine/core/painting/TransferMode.dart:15: static ...
5 years, 6 months ago (2015-06-02 00:22:18 UTC) #4
abarth-chromium
https://codereview.chromium.org/1158883004/diff/60001/sky/engine/core/painting/TransferMode.dart File sky/engine/core/painting/TransferMode.dart (right): https://codereview.chromium.org/1158883004/diff/60001/sky/engine/core/painting/TransferMode.dart#newcode15 sky/engine/core/painting/TransferMode.dart:15: static const TransferMode clearMode = const TransferMode(0); On 2015/06/02 ...
5 years, 6 months ago (2015-06-02 00:24:41 UTC) #6
Matt Perry
https://codereview.chromium.org/1158883004/diff/60001/sky/engine/core/painting/TransferMode.dart File sky/engine/core/painting/TransferMode.dart (right): https://codereview.chromium.org/1158883004/diff/60001/sky/engine/core/painting/TransferMode.dart#newcode15 sky/engine/core/painting/TransferMode.dart:15: static const TransferMode clearMode = const TransferMode(0); On 2015/06/02 ...
5 years, 6 months ago (2015-06-02 18:28:54 UTC) #7
eseidel
ok, lgtm. Perhaps we need to file a Dart improvement request or whatever it's called ...
5 years, 6 months ago (2015-06-02 18:31:13 UTC) #8
Matt Perry
5 years, 6 months ago (2015-06-02 19:03:47 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
c2ace8a3e256e2f78e2ec1f7e1001ef47e2f5983 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698