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

Issue 236633008: Switching Chromium to use new Skia SkPictureRecorder API (Closed)

Created:
6 years, 8 months ago by robertphillips
Modified:
6 years, 8 months ago
Reviewers:
enne (OOO), reed1
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Switching Chromium to use new Skia SkPictureRecorder API The Skia SkPicture recording API is changing to make it clearer when the SkPicture is valid. In the new API SkPictureRecorder::endRecording returns the new SkPicture. This isn't landable until Skia DEPS rolls past r14171. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264243

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address code review issue #

Total comments: 14

Patch Set 3 : removed useless comment #

Patch Set 4 : added DCHECK #

Patch Set 5 : Update to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -28 lines) Patch
M cc/layers/content_layer.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M cc/resources/picture.cc View 1 2 3 3 chunks +14 lines, -9 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 2 3 4 1 chunk +5 lines, -8 lines 0 comments Download
M cc/resources/skpicture_content_layer_updater.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/skpicture_content_layer_updater.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
robertphillips
6 years, 8 months ago (2014-04-14 15:13:04 UTC) #1
reed1
https://codereview.chromium.org/236633008/diff/1/cc/resources/skpicture_content_layer_updater.cc File cc/resources/skpicture_content_layer_updater.cc (right): https://codereview.chromium.org/236633008/diff/1/cc/resources/skpicture_content_layer_updater.cc#newcode30 cc/resources/skpicture_content_layer_updater.cc:30: SkCanvas* canvas = picture_recorder_.beginRecording(content_rect.width(), Why does picture_recorder_ have to ...
6 years, 8 months ago (2014-04-14 15:19:02 UTC) #2
robertphillips
https://codereview.chromium.org/236633008/diff/1/cc/resources/skpicture_content_layer_updater.cc File cc/resources/skpicture_content_layer_updater.cc (right): https://codereview.chromium.org/236633008/diff/1/cc/resources/skpicture_content_layer_updater.cc#newcode30 cc/resources/skpicture_content_layer_updater.cc:30: SkCanvas* canvas = picture_recorder_.beginRecording(content_rect.width(), On 2014/04/14 15:19:02, reed1 wrote: ...
6 years, 8 months ago (2014-04-14 15:36:28 UTC) #3
tomhudson
On 2014/04/14 15:19:02, reed1 wrote: > https://codereview.chromium.org/236633008/diff/1/cc/resources/skpicture_content_layer_updater.cc > File cc/resources/skpicture_content_layer_updater.cc (right): > > https://codereview.chromium.org/236633008/diff/1/cc/resources/skpicture_content_layer_updater.cc#newcode30 > ...
6 years, 8 months ago (2014-04-14 15:37:52 UTC) #4
robertphillips
It was just an oversight on my part. The class was holding a vanilla SkPicture ...
6 years, 8 months ago (2014-04-14 15:44:35 UTC) #5
enne (OOO)
Could you format your change description to 72 characters max? https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc#newcode258 ...
6 years, 8 months ago (2014-04-15 01:10:39 UTC) #6
robertphillips
https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc#newcode258 cc/resources/picture.cc:258: canvas = skia::SharePtr(recorder.beginRecording( As is, I think the behavior ...
6 years, 8 months ago (2014-04-15 15:37:04 UTC) #7
enne (OOO)
Thanks for all the explanation. :) https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc#newcode258 cc/resources/picture.cc:258: canvas = skia::SharePtr(recorder.beginRecording( ...
6 years, 8 months ago (2014-04-15 16:45:16 UTC) #8
robertphillips
https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc#newcode266 cc/resources/picture.cc:266: // Already setup for normal recording The RECORD_WITH_PAINTING_DISABLED and ...
6 years, 8 months ago (2014-04-15 19:17:32 UTC) #9
enne (OOO)
lgtm https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/236633008/diff/20001/cc/resources/picture.cc#newcode266 cc/resources/picture.cc:266: // Already setup for normal recording On 2014/04/15 ...
6 years, 8 months ago (2014-04-15 19:43:27 UTC) #10
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 8 months ago (2014-04-16 11:44:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertphillips@google.com/236633008/60001
6 years, 8 months ago (2014-04-16 11:44:46 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 11:44:51 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/resources/picture_pile_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-16 11:44:52 UTC) #14
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 8 months ago (2014-04-16 12:33:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertphillips@google.com/236633008/80001
6 years, 8 months ago (2014-04-16 12:33:22 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 17:34:26 UTC) #17
Message was sent while issue was closed.
Change committed as 264243

Powered by Google App Engine
This is Rietveld 408576698