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

Issue 714203006: cc: Remove PicturePileBase (Closed)

Created:
6 years, 1 month ago by hendrikw
Modified:
6 years, 1 month ago
Reviewers:
danakj, vmpstr
CC:
chromium-reviews, Ian Vollick, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Remove PicturePileBase - remove required contents of PicturePileBase into PicturePile - move as many test functions into TextPicturePile as posible and moved into separate file to share the class Committed: https://crrev.com/312ee8acb412671d98f3c1e7c0fc0304dc9b7fea Cr-Commit-Position: refs/heads/master@{#303919}

Patch Set 1 #

Patch Set 2 : Some small tweaks #

Total comments: 6

Patch Set 3 : Address review comments #

Total comments: 9

Patch Set 4 : Address review comments #

Total comments: 10

Patch Set 5 : More review comments #

Patch Set 6 : Fix build.gn #

Total comments: 2

Patch Set 7 : Renamed function #

Total comments: 3

Patch Set 8 : missed comma #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -533 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M cc/cc.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/debug/picture_record_benchmark.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/picture_layer.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer.cc View 1 4 chunks +9 lines, -7 lines 0 comments Download
M cc/resources/picture_pile.h View 1 2 3 4 2 chunks +68 lines, -9 lines 0 comments Download
M cc/resources/picture_pile.cc View 1 2 3 4 5 6 9 chunks +156 lines, -19 lines 0 comments Download
D cc/resources/picture_pile_base.h View 1 chunk +0 lines, -137 lines 0 comments Download
D cc/resources/picture_pile_base.cc View 1 chunk +0 lines, -205 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 1 2 3 4 5 6 3 chunks +8 lines, -10 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 2 3 4 38 chunks +96 lines, -120 lines 0 comments Download
M cc/resources/recording_source.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
A cc/test/fake_picture_pile.h View 1 2 3 4 5 6 7 1 chunk +53 lines, -0 lines 9 comments Download
M cc/test/fake_picture_pile_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_picture_pile_impl.cc View 1 2 3 4 5 chunks +14 lines, -13 lines 0 comments Download
M ui/compositor/layer.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
hendrikw
2nd part - remove picturepilebase Sorry Dana, I know I said I wouldn't send you ...
6 years, 1 month ago (2014-11-11 23:46:44 UTC) #3
vmpstr
https://codereview.chromium.org/714203006/diff/20001/cc/cc.gyp File cc/cc.gyp (left): https://codereview.chromium.org/714203006/diff/20001/cc/cc.gyp#oldcode385 cc/cc.gyp:385: 'resources/picture_pile_base.cc', .gyp changes should have corresponding BUILD.gn changes. https://codereview.chromium.org/714203006/diff/20001/cc/debug/picture_record_benchmark.cc ...
6 years, 1 month ago (2014-11-11 23:57:08 UTC) #4
hendrikw
PTAL https://codereview.chromium.org/714203006/diff/20001/cc/cc.gyp File cc/cc.gyp (left): https://codereview.chromium.org/714203006/diff/20001/cc/cc.gyp#oldcode385 cc/cc.gyp:385: 'resources/picture_pile_base.cc', On 2014/11/11 23:57:07, vmpstr wrote: > .gyp ...
6 years, 1 month ago (2014-11-12 00:02:34 UTC) #5
vmpstr
https://codereview.chromium.org/714203006/diff/40001/cc/debug/picture_record_benchmark.cc File cc/debug/picture_record_benchmark.cc (right): https://codereview.chromium.org/714203006/diff/40001/cc/debug/picture_record_benchmark.cc#newcode16 cc/debug/picture_record_benchmark.cc:16: #include "third_party/skia/include/core/skBBHFactory.h" This file doesn't exist (capitalization and all ...
6 years, 1 month ago (2014-11-12 19:19:00 UTC) #6
hendrikw
PTAL https://codereview.chromium.org/714203006/diff/40001/cc/debug/picture_record_benchmark.cc File cc/debug/picture_record_benchmark.cc (right): https://codereview.chromium.org/714203006/diff/40001/cc/debug/picture_record_benchmark.cc#newcode16 cc/debug/picture_record_benchmark.cc:16: #include "third_party/skia/include/core/skBBHFactory.h" On 2014/11/12 19:18:57, vmpstr wrote: > ...
6 years, 1 month ago (2014-11-12 19:37:33 UTC) #7
vmpstr
lgtm % danakj
6 years, 1 month ago (2014-11-12 19:41:31 UTC) #8
danakj
https://codereview.chromium.org/714203006/diff/60001/cc/resources/picture_pile.h File cc/resources/picture_pile.h (right): https://codereview.chromium.org/714203006/diff/60001/cc/resources/picture_pile.h#newcode22 cc/resources/picture_pile.h:22: // RecordingSource overrides add a period https://codereview.chromium.org/714203006/diff/60001/cc/resources/picture_pile_impl.h File cc/resources/picture_pile_impl.h ...
6 years, 1 month ago (2014-11-12 19:56:39 UTC) #9
hendrikw
PTAL https://codereview.chromium.org/714203006/diff/60001/cc/resources/picture_pile.h File cc/resources/picture_pile.h (right): https://codereview.chromium.org/714203006/diff/60001/cc/resources/picture_pile.h#newcode22 cc/resources/picture_pile.h:22: // RecordingSource overrides On 2014/11/12 19:56:38, danakj wrote: ...
6 years, 1 month ago (2014-11-12 20:25:42 UTC) #10
danakj
LGTM https://codereview.chromium.org/714203006/diff/100001/cc/resources/picture_pile.cc File cc/resources/picture_pile.cc (right): https://codereview.chromium.org/714203006/diff/100001/cc/resources/picture_pile.cc#newcode638 cc/resources/picture_pile.cc:638: return scoped_refptr<RasterSource>(PicturePileImpl::CreateFromOther(this)); I don't think that you need ...
6 years, 1 month ago (2014-11-12 20:33:37 UTC) #11
vmpstr
https://codereview.chromium.org/714203006/diff/100001/cc/resources/picture_pile_impl.h File cc/resources/picture_pile_impl.h (right): https://codereview.chromium.org/714203006/diff/100001/cc/resources/picture_pile_impl.h#newcode27 cc/resources/picture_pile_impl.h:27: static scoped_refptr<PicturePileImpl> CreateFromOther( Since we're going with a Create* ...
6 years, 1 month ago (2014-11-12 20:36:34 UTC) #12
hendrikw
On 2014/11/12 20:36:34, vmpstr wrote: > https://codereview.chromium.org/714203006/diff/100001/cc/resources/picture_pile_impl.h > File cc/resources/picture_pile_impl.h (right): > > https://codereview.chromium.org/714203006/diff/100001/cc/resources/picture_pile_impl.h#newcode27 > ...
6 years, 1 month ago (2014-11-12 21:10:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/714203006/120001
6 years, 1 month ago (2014-11-12 21:12:57 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/16555) android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/33313) linux_chromium_gn_dbg ...
6 years, 1 month ago (2014-11-12 21:18:15 UTC) #17
danakj
https://codereview.chromium.org/714203006/diff/120001/cc/test/fake_picture_pile.h File cc/test/fake_picture_pile.h (right): https://codereview.chromium.org/714203006/diff/120001/cc/test/fake_picture_pile.h#newcode1 cc/test/fake_picture_pile.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 1 month ago (2014-11-12 21:30:49 UTC) #18
danakj
https://codereview.chromium.org/714203006/diff/120001/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/714203006/diff/120001/cc/BUILD.gn#newcode544 cc/BUILD.gn:544: "test/fake_picture_pile.h" missing a ,
6 years, 1 month ago (2014-11-12 21:31:16 UTC) #19
danakj
https://codereview.chromium.org/714203006/diff/120001/cc/test/fake_picture_pile.h File cc/test/fake_picture_pile.h (right): https://codereview.chromium.org/714203006/diff/120001/cc/test/fake_picture_pile.h#newcode5 cc/test/fake_picture_pile.h:5: #ifndef CC_FAKE_PICTURE_PILE_H_ oh and CC_TEST_FAKE_PICTURE_PILE_H you want the full ...
6 years, 1 month ago (2014-11-12 21:32:19 UTC) #20
hendrikw
On 2014/11/12 21:32:19, danakj wrote: > https://codereview.chromium.org/714203006/diff/120001/cc/test/fake_picture_pile.h > File cc/test/fake_picture_pile.h (right): > > https://codereview.chromium.org/714203006/diff/120001/cc/test/fake_picture_pile.h#newcode5 > ...
6 years, 1 month ago (2014-11-12 21:53:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/714203006/140001
6 years, 1 month ago (2014-11-12 21:54:41 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-12 23:24:44 UTC) #24
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/312ee8acb412671d98f3c1e7c0fc0304dc9b7fea Cr-Commit-Position: refs/heads/master@{#303919}
6 years, 1 month ago (2014-11-12 23:25:27 UTC) #25
tfarina
https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pile.h File cc/test/fake_picture_pile.h (right): https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pile.h#newcode30 cc/test/fake_picture_pile.h:30: bool HasRecordings() const { return has_any_recordings_; } bool has_any_recordings() ...
6 years, 1 month ago (2014-11-13 15:33:43 UTC) #26
tfarina
Also, you could have assigned this to BUG=430260 in the CL description. ;)
6 years, 1 month ago (2014-11-13 15:35:19 UTC) #27
hendrikw
On 2014/11/13 15:33:43, tfarina wrote: > https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pile.h > File cc/test/fake_picture_pile.h (right): > > https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pile.h#newcode30 > ...
6 years, 1 month ago (2014-11-13 16:37:02 UTC) #28
danakj
https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pile.h File cc/test/fake_picture_pile.h (right): https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pile.h#newcode30 cc/test/fake_picture_pile.h:30: bool HasRecordings() const { return has_any_recordings_; } On 2014/11/13 ...
6 years, 1 month ago (2014-11-13 16:59:13 UTC) #29
hendrikw
6 years, 1 month ago (2014-11-13 17:36:30 UTC) #30
Message was sent while issue was closed.
On 2014/11/13 16:59:13, danakj wrote:
>
https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pi...
> File cc/test/fake_picture_pile.h (right):
> 
>
https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pi...
> cc/test/fake_picture_pile.h:30: bool HasRecordings() const { return
> has_any_recordings_; }
> On 2014/11/13 15:33:42, tfarina wrote:
> > bool has_any_recordings() const { .. }
> > +
> > void set_has_any_recordings() { ... }
> > 
> > ?
> 
> Meh... they could be formatted that way, but a) this is legal and b) this is
> test code. So I don't feel strongly either way.
> 
>
https://codereview.chromium.org/714203006/diff/140001/cc/test/fake_picture_pi...
> cc/test/fake_picture_pile.h:42: bool is_solid_color() const { return
> is_solid_color_; }
> On 2014/11/13 15:33:42, tfarina wrote:
> > in c++11 you don't need to initialize this member variable in the
constructor
> > anymore? Does it get set to false automatically? Sorry, I don't remember.
> > Haven't written C++ for some time now.
> 
> You do need to initialize, looks like that is missing from the base class.

PicturePile initializes is_solid_color_ and solid_color_.

background_color_ was always missing, but that's set in my other cl.

Powered by Google App Engine
This is Rietveld 408576698