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

Issue 2001653002: Remove SkDevice, obsolete constructor (Closed)

Created:
4 years, 7 months ago by tomhudson
Modified:
4 years, 6 months ago
Reviewers:
f(malita), reed1
CC:
chromium-reviews, _cary, ccameron
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove SkDevice, obsolete constructor We already have all the API we need to rewrite skia_utils_mac without referring to the to-be-deprecated SkBaseDevice or its BitmapPlatformDevice subclasses. Also get rid of a constructor that was marked "TODO: delete this" and all of the expensive code behind it which was *only* activated by unit tests. R=fmalita@chromium.org BUG=543755 Committed: https://crrev.com/ad6f9da1d6372d185ffe51dc62246d5e4ffa8782 Cr-Commit-Position: refs/heads/master@{#398636}

Patch Set 1 #

Patch Set 2 : -> -> . #

Patch Set 3 : No more exactitude #

Patch Set 4 : obsolete constructor implementation delenda est #

Patch Set 5 : unit test hack #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Remove NoBits checks from unit test #

Patch Set 9 : clipping diagnostics #

Patch Set 10 : allow null userClipRect #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : remove debug code, fix spelling error in comment #

Patch Set 15 : Trim another out-of-date comment #

Total comments: 6

Patch Set 16 : expect inverse CTM to avoid additional clipping #

Total comments: 1

Patch Set 17 : Florin knows my intent better than I do #

Patch Set 18 : debug again #

Patch Set 19 : fix %f->%d in debug #

Patch Set 20 : unary negative of unsigned is surprising #

Patch Set 21 : clean out debugging statements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -129 lines) Patch
M skia/ext/skia_utils_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -7 lines 0 comments Download
M skia/ext/skia_utils_mac.mm View 1 2 3 10 11 6 chunks +8 lines, -93 lines 0 comments Download
M skia/ext/skia_utils_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +4 lines, -29 lines 0 comments Download

Messages

Total messages: 37 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001653002/60001
4 years, 7 months ago (2016-05-20 16:29:45 UTC) #4
tomhudson
Florin, PTAL; this gets rid of two more SkDevice users and a lot of dead ...
4 years, 7 months ago (2016-05-20 16:31:20 UTC) #5
f(malita)
Nice, LGTM!
4 years, 7 months ago (2016-05-20 17:17:49 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/231596)
4 years, 7 months ago (2016-05-20 17:19:44 UTC) #8
tomhudson
SkiaBitLocker is only used from Blink's platform/mac/LocalCurrentGraphicsContext. ThemePainterMac::paintTextField() ThemePainterMac::paintCapsLockIndicator() ThemePainterMac::paintTextArea() ThemePainterMac::paintMenuList() ThemePainterMac::paintProgressBar() ThemePainterMac::paintSearchField() ThemeMac.paintCheckbox() ThemeMac.paintRadio() ...
4 years, 6 months ago (2016-06-03 18:07:32 UTC) #10
tomhudson
PTAL, Mike; I wasn't able to change the clipping argument to a pointer because of ...
4 years, 6 months ago (2016-06-07 20:12:20 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001653002/280001
4 years, 6 months ago (2016-06-07 21:02:35 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-07 21:50:09 UTC) #16
f(malita)
https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h File skia/ext/skia_utils_mac.h (right): https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h#newcode104 skia/ext/skia_utils_mac.h:104: SkIRect::MakeSize(canvas->getBaseLayerSize()). If the clip is in local coords, then ...
4 years, 6 months ago (2016-06-08 13:16:55 UTC) #17
f(malita)
https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h File skia/ext/skia_utils_mac.h (right): https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h#newcode107 skia/ext/skia_utils_mac.h:107: const SkIRect& userClipRect, Not new to this CL, but ...
4 years, 6 months ago (2016-06-08 13:27:17 UTC) #18
tomhudson
On 2016/06/08 13:16:55, f(malita) wrote: > https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h > File skia/ext/skia_utils_mac.h (right): > > https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h#newcode104 > ...
4 years, 6 months ago (2016-06-08 13:31:00 UTC) #19
f(malita)
On 2016/06/08 13:31:00, tomhudson wrote: > On 2016/06/08 13:16:55, f(malita) wrote: > > > https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h ...
4 years, 6 months ago (2016-06-08 13:45:53 UTC) #20
tomhudson
https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h File skia/ext/skia_utils_mac.h (right): https://codereview.chromium.org/2001653002/diff/280001/skia/ext/skia_utils_mac.h#newcode104 skia/ext/skia_utils_mac.h:104: SkIRect::MakeSize(canvas->getBaseLayerSize()). On 2016/06/08 13:16:54, f(malita) wrote: > If the ...
4 years, 6 months ago (2016-06-08 14:19:36 UTC) #21
f(malita)
Thanks for looking into this. Still LGTM % unit test clip tweak. https://codereview.chromium.org/2001653002/diff/300001/skia/ext/skia_utils_mac_unittest.mm File skia/ext/skia_utils_mac_unittest.mm ...
4 years, 6 months ago (2016-06-08 14:24:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001653002/320001
4 years, 6 months ago (2016-06-08 14:26:56 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/241019)
4 years, 6 months ago (2016-06-08 15:15:51 UTC) #27
tomhudson
> SkIRect clip = SkIRect::MakeSize(canvas.getBaseLayerSize()).makeOffset((test & > TestTranslate) ? -width / 2 : 0, 0); ...
4 years, 6 months ago (2016-06-08 16:38:11 UTC) #28
tomhudson
On 2016/06/08 16:38:11, tomhudson wrote: > > SkIRect clip = SkIRect::MakeSize(canvas.getBaseLayerSize()).makeOffset((test & > > TestTranslate) ...
4 years, 6 months ago (2016-06-08 16:38:48 UTC) #29
f(malita)
On 2016/06/08 16:38:48, tomhudson wrote: > On 2016/06/08 16:38:11, tomhudson wrote: > > > SkIRect ...
4 years, 6 months ago (2016-06-08 17:05:50 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001653002/400001
4 years, 6 months ago (2016-06-08 18:26:44 UTC) #33
commit-bot: I haz the power
Committed patchset #21 (id:400001)
4 years, 6 months ago (2016-06-08 19:17:44 UTC) #35
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 19:20:05 UTC) #37
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/ad6f9da1d6372d185ffe51dc62246d5e4ffa8782
Cr-Commit-Position: refs/heads/master@{#398636}

Powered by Google App Engine
This is Rietveld 408576698