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

Issue 913413005: Constify SkPicture in DrawingDisplayItem (cc side) (Closed)

Created:
5 years, 10 months ago by Stephen Chennney
Modified:
5 years, 9 months ago
Reviewers:
ajuma
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Constify SkPicture in DrawingDisplayItem This initial patch just adds the web-facing methods for cc, allowing the Blink side web classes to change to the new form. Yet another patch will move cc completely to the new form. The SkPicture is immutable and should be const in a DrawingDisplayItem. And there is no need for the location point; it is stored in the cullRect of the picture. R=ajuma@chromium.org BUG=458240 Committed: https://crrev.com/0451901e7b5a079ff17240f1b1c797c6946b0735 Cr-Commit-Position: refs/heads/master@{#316116}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix compile issue. #

Total comments: 2

Patch Set 3 : Now builds with Blink changes too. #

Patch Set 4 : 4th time lucky. Minimal now. #

Patch Set 5 : Fix for previous incorrect patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -2 lines) Patch
M cc/blink/web_display_item_list_impl.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
Stephen Chennney
FIXME cleanup. No change in behavior.
5 years, 10 months ago (2015-02-12 19:33:26 UTC) #1
Stephen Chennney
Actually, small problem. Just a minute.
5 years, 10 months ago (2015-02-12 19:34:34 UTC) #2
Stephen Chennney
Problem fixed.
5 years, 10 months ago (2015-02-12 19:37:12 UTC) #3
ajuma
https://codereview.chromium.org/913413005/diff/1/cc/resources/drawing_display_item.cc File cc/resources/drawing_display_item.cc (right): https://codereview.chromium.org/913413005/diff/1/cc/resources/drawing_display_item.cc#newcode30 cc/resources/drawing_display_item.cc:30: canvas->translate(picture_->cullRect().x(), picture_->cullRect().y()); Since Blink is currently sending an empty ...
5 years, 10 months ago (2015-02-12 19:42:59 UTC) #4
Stephen Chennney
Yep, it breaks the world. Should have run layout tests before posting. Will update when ...
5 years, 10 months ago (2015-02-12 19:47:59 UTC) #5
Stephen Chennney
Totally minimal now. Verified with and without the associated Blink-side changes.
5 years, 10 months ago (2015-02-12 20:05:15 UTC) #6
ajuma
lgtm
5 years, 10 months ago (2015-02-12 20:08:54 UTC) #7
ajuma
(Please update the description before landing.)
5 years, 10 months ago (2015-02-12 20:10:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913413005/60001
5 years, 10 months ago (2015-02-12 23:02:15 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-13 01:14:37 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0451901e7b5a079ff17240f1b1c797c6946b0735 Cr-Commit-Position: refs/heads/master@{#316116}
5 years, 10 months ago (2015-02-13 01:15:22 UTC) #12
Stephen Chennney
I made a mistake the last time. This works with the Blink side changes, where ...
5 years, 10 months ago (2015-02-17 18:30:30 UTC) #14
ajuma
5 years, 10 months ago (2015-02-17 19:05:59 UTC) #15
On 2015/02/17 18:30:30, Stephen Chenney wrote:
> I made a mistake the last time. This works with the Blink side changes, where
we
> were passing (0,0) as the location, not the cull rect corner.

The change lgtm, though I'd suggest opening a separate codereview issue for it
since it isn't a re-landing of the previous patch.

Powered by Google App Engine
This is Rietveld 408576698