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

Issue 225023031: Hack SkRecord in as an alternate recording mode in cc/resources/picture. (Closed)

Created:
6 years, 8 months ago by mtklein_C
Modified:
6 years, 7 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, telemetry+watch_chromium.org, f(malita)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Hack SkRecord in as an alternate recording mode in cc/resources/picture. BUG=skia:2378 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267209

Patch Set 1 #

Patch Set 2 : small #

Patch Set 3 : small #

Patch Set 4 : assume in include/record #

Patch Set 5 : update gypi #

Patch Set 6 : share a const SkRecord instead of cloning #

Patch Set 7 : use about:flag #

Patch Set 8 : sync to new api #

Patch Set 9 : use new public API #

Patch Set 10 : working #

Patch Set 11 : rebase to latest patches #

Total comments: 7

Patch Set 12 : rebase #

Patch Set 13 : .get() #

Patch Set 14 : now with much less crashing #

Patch Set 15 : undo some diffs #

Patch Set 16 : use gypi #

Patch Set 17 : undo flag for now #

Total comments: 7

Patch Set 18 : pithy null checks #

Patch Set 19 : _skr -> _skrecord #

Patch Set 20 : benchmark hookup #

Patch Set 21 : rebase and use new api #

Total comments: 2

Patch Set 22 : update comment #

Patch Set 23 : rebase #

Patch Set 24 : missing _ms #

Patch Set 25 : rebase? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -4 lines) Patch
M cc/debug/rasterize_and_record_benchmark.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/picture.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/picture.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 7 chunks +34 lines, -2 lines 0 comments Download
M cc/resources/picture_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +10 lines, -1 line 0 comments Download
M skia/skia_library.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M tools/perf/measurements/rasterize_and_record_micro.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (0 generated)
mtklein
6 years, 8 months ago (2014-04-07 21:48:17 UTC) #1
Sami
I think this looks great. Probably not relevant for testing, but do we need to ...
6 years, 8 months ago (2014-04-08 10:47:44 UTC) #2
Sami
Another random idea: let's make this the default if we can get away with it, ...
6 years, 8 months ago (2014-04-08 11:10:53 UTC) #3
mtklein
On 2014/04/08 11:10:53, Sami wrote: > Another random idea: let's make this the default if ...
6 years, 8 months ago (2014-04-08 14:20:23 UTC) #4
Sami
On 2014/04/08 14:20:23, mtklein wrote: > 1) Cloning is trivially easy with SkRecord: just draw ...
6 years, 8 months ago (2014-04-08 14:31:20 UTC) #5
mtklein
On 2014/04/08 14:20:23, mtklein wrote: > On 2014/04/08 11:10:53, Sami wrote: > > Another random ...
6 years, 8 months ago (2014-04-08 14:32:01 UTC) #6
tomhudson
https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc#newcode274 cc/resources/picture.cc:274: SkCanvas* canvas = NULL; cc/ dogma considers any naked ...
6 years, 8 months ago (2014-04-17 16:44:02 UTC) #7
enne (OOO)
https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc#newcode255 cc/resources/picture.cc:255: // HACK HACK HACK HACK: checkdeps won't let me ...
6 years, 8 months ago (2014-04-17 17:09:49 UTC) #8
mtklein
https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc#newcode255 cc/resources/picture.cc:255: // HACK HACK HACK HACK: checkdeps won't let me ...
6 years, 8 months ago (2014-04-17 17:32:03 UTC) #9
danakj
https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc#newcode274 cc/resources/picture.cc:274: SkCanvas* canvas = NULL; On 2014/04/17 17:32:04, mtklein wrote: ...
6 years, 8 months ago (2014-04-17 17:36:56 UTC) #10
enne (OOO)
https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/180001/cc/resources/picture.cc#newcode274 cc/resources/picture.cc:274: SkCanvas* canvas = NULL; On 2014/04/17 17:09:49, enne wrote: ...
6 years, 8 months ago (2014-04-17 17:41:43 UTC) #11
mtklein
> In this case, why not get rid of |canvas| and just use |ownedCanvas| to ...
6 years, 8 months ago (2014-04-17 17:48:14 UTC) #12
danakj
On Thu, Apr 17, 2014 at 1:48 PM, <mtklein@google.com> wrote: > In this case, why ...
6 years, 8 months ago (2014-04-17 17:52:30 UTC) #13
mtklein
Hi folks, Can you take a look at PS 17? I've reverted all the bits ...
6 years, 8 months ago (2014-04-22 17:13:20 UTC) #14
danakj
just nits from me and complaining about the skia API, the refcounting looks better thanks. ...
6 years, 8 months ago (2014-04-22 17:25:52 UTC) #15
enne (OOO)
https://codereview.chromium.org/225023031/diff/300001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/300001/cc/resources/picture.cc#newcode267 cc/resources/picture.cc:267: EXPERIMENTAL::SkRecording* recording = NULL; Can you help me understand ...
6 years, 8 months ago (2014-04-22 17:26:03 UTC) #16
mtklein
On 2014/04/22 17:26:03, enne wrote: > https://codereview.chromium.org/225023031/diff/300001/cc/resources/picture.cc > File cc/resources/picture.cc (right): > > https://codereview.chromium.org/225023031/diff/300001/cc/resources/picture.cc#newcode267 > ...
6 years, 8 months ago (2014-04-22 17:44:32 UTC) #17
mtklein
https://codereview.chromium.org/225023031/diff/300001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/300001/cc/resources/picture.cc#newcode195 cc/resources/picture.cc:195: if (playback_.get() != NULL) { On 2014/04/22 17:25:53, danakj ...
6 years, 8 months ago (2014-04-22 17:48:55 UTC) #18
enne (OOO)
I apologize if we're a bit allergic to raw pointers. There's not much expertise in ...
6 years, 8 months ago (2014-04-22 18:24:51 UTC) #19
mtklein
On 2014/04/22 18:24:51, enne wrote: > I apologize if we're a bit allergic to raw ...
6 years, 8 months ago (2014-04-22 18:57:48 UTC) #20
enne (OOO)
On 2014/04/22 18:57:48, mtklein wrote: > > Here's a suggestion for something I think would ...
6 years, 8 months ago (2014-04-22 19:46:35 UTC) #21
nduca
lgtm assuming you get lg from dana or enne the clear() on the canvas is ...
6 years, 8 months ago (2014-04-22 23:29:05 UTC) #22
mtklein
On 2014/04/22 23:29:05, nduca wrote: > lgtm assuming you get lg from dana or enne ...
6 years, 8 months ago (2014-04-22 23:38:59 UTC) #23
Sami
Mind adding the benchmark hookup to this patch too? It makes life a little easier ...
6 years, 8 months ago (2014-04-23 10:34:37 UTC) #24
mtklein
On 2014/04/23 10:34:37, Sami wrote: > Mind adding the benchmark hookup to this patch too? ...
6 years, 8 months ago (2014-04-23 14:49:59 UTC) #25
mtklein
Hi gang, PTAL at #21? This can land after Skia's next roll into Chrome.
6 years, 8 months ago (2014-04-25 13:29:36 UTC) #26
enne (OOO)
lgtm https://codereview.chromium.org/225023031/diff/380001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/380001/cc/resources/picture.cc#newcode318 cc/resources/picture.cc:318: canvas.clear(); // Drop ref on canvas before calling ...
6 years, 8 months ago (2014-04-25 17:34:21 UTC) #27
mtklein
https://codereview.chromium.org/225023031/diff/380001/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/225023031/diff/380001/cc/resources/picture.cc#newcode318 cc/resources/picture.cc:318: canvas.clear(); // Drop ref on canvas before calling releasePlayback(). ...
6 years, 7 months ago (2014-04-28 19:03:18 UTC) #28
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-28 19:03:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/420001
6 years, 7 months ago (2014-04-28 19:04:27 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 19:11:41 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 19:11:42 UTC) #32
mtklein
6 years, 7 months ago (2014-04-28 19:13:39 UTC) #33
bungeman-skia
lgtm
6 years, 7 months ago (2014-04-28 19:18:54 UTC) #34
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-28 19:19:18 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/420001
6 years, 7 months ago (2014-04-28 19:20:00 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 19:27:36 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on android_clang_dbg tryserver.chromium on linux_chromium_chromeos_rel
6 years, 7 months ago (2014-04-28 19:27:37 UTC) #38
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-28 19:36:29 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/440001
6 years, 7 months ago (2014-04-28 19:38:38 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 19:46:12 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on android_clang_dbg
6 years, 7 months ago (2014-04-28 19:46:13 UTC) #42
mtklein
On 2014/04/28 19:46:13, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-04-28 20:51:33 UTC) #43
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-29 19:52:38 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/440001
6 years, 7 months ago (2014-04-29 19:54:43 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 00:03:48 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 00:03:49 UTC) #47
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-30 00:05:14 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/440001
6 years, 7 months ago (2014-04-30 00:08:16 UTC) #49
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 01:01:50 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 01:01:51 UTC) #51
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-30 10:29:57 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/460001
6 years, 7 months ago (2014-04-30 10:30:47 UTC) #53
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 10:35:49 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 10:35:50 UTC) #55
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 7 months ago (2014-04-30 10:36:24 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtklein@chromium.org/225023031/460001
6 years, 7 months ago (2014-04-30 10:36:41 UTC) #57
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 14:53:51 UTC) #58
Message was sent while issue was closed.
Change committed as 267209

Powered by Google App Engine
This is Rietveld 408576698