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

Issue 12954006: Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl (Closed)

Created:
7 years, 9 months ago by Xianzhu
Modified:
7 years, 9 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl AreVisibleResourcesReady didn't return correct value because PictureLayerImpl::raster_source_scale_ didn't reflect the actual value for PictureImageLayerImpl. In this CL raster_contents_scale_ and low_res_raster_contents_scale_ are stored in PictureLayerImpl. BTW extracted the code to determine if raster scale needs to be adjusted into ShouldAdjustRasterScale(). BUG=223201 TEST=PictureImageLayerImplTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190621

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Keep source scales; New ShouldAdjustRasterScale #

Total comments: 6

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -79 lines) Patch
M cc/cc_tests.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/layers/picture_image_layer_impl.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer_impl.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
A cc/layers/picture_image_layer_impl_unittest.cc View 1 1 chunk +81 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 11 chunks +62 lines, -68 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 chunks +1 line, -7 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 chunk +1 line, -0 lines 0 comments Download
A cc/test/impl_side_painting_settings.h View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Xianzhu
7 years, 9 months ago (2013-03-22 22:40:19 UTC) #1
enne (OOO)
https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_image_layer_impl_unittest.cc File cc/layers/picture_image_layer_impl_unittest.cc (right): https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_image_layer_impl_unittest.cc#newcode50 cc/layers/picture_image_layer_impl_unittest.cc:50: TEST_F(PictureImageLayerImplTest, CalcualateContentsScale) { Typo. https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc#newcode589 ...
7 years, 9 months ago (2013-03-23 00:47:32 UTC) #2
Xianzhu
https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc#newcode589 cc/layers/picture_layer_impl.cc:589: if (!raster_page_scale_ || !raster_device_scale_ || !raster_contents_scale_) On 2013/03/23 00:47:32, ...
7 years, 9 months ago (2013-03-25 16:05:07 UTC) #3
danakj
https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc#newcode589 cc/layers/picture_layer_impl.cc:589: if (!raster_page_scale_ || !raster_device_scale_ || !raster_contents_scale_) On 2013/03/25 16:05:07, ...
7 years, 9 months ago (2013-03-25 16:44:44 UTC) #4
Xianzhu
On 2013/03/25 16:44:44, danakj wrote: > https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc > File cc/layers/picture_layer_impl.cc (right): > > https://codereview.chromium.org/12954006/diff/2001/cc/layers/picture_layer_impl.cc#newcode589 > ...
7 years, 9 months ago (2013-03-25 16:51:00 UTC) #5
danakj
On Mon, Mar 25, 2013 at 12:51 PM, <wangxianzhu@chromium.org> wrote: > On 2013/03/25 16:44:44, danakj ...
7 years, 9 months ago (2013-03-25 16:55:50 UTC) #6
Xianzhu
> The code currently doesn't do much with the source scale, but it will be. ...
7 years, 9 months ago (2013-03-25 17:20:42 UTC) #7
danakj
On Mon, Mar 25, 2013 at 1:20 PM, <wangxianzhu@chromium.org> wrote: > The code currently doesn't ...
7 years, 9 months ago (2013-03-25 17:30:11 UTC) #8
Xianzhu
On 2013/03/25 17:30:11, danakj wrote: > > I see, thanks for the explanation. I ran ...
7 years, 9 months ago (2013-03-25 17:35:44 UTC) #9
danakj
On Mon, Mar 25, 2013 at 1:35 PM, <wangxianzhu@chromium.org> wrote: > On 2013/03/25 17:30:11, danakj ...
7 years, 9 months ago (2013-03-25 17:42:00 UTC) #10
Xianzhu
On 2013/03/25 17:42:00, danakj wrote: > For images, is the desired behaviour that the source, ...
7 years, 9 months ago (2013-03-25 18:00:51 UTC) #11
enne (OOO)
Here's a suggestion: Move the code from line 620-636 in PictureLayerImpl into ShouldChangeRasterScale. That way, ...
7 years, 9 months ago (2013-03-25 18:03:58 UTC) #12
Xianzhu
On 2013/03/25 18:03:58, enne wrote: > Here's a suggestion: > > Move the code from ...
7 years, 9 months ago (2013-03-25 18:45:58 UTC) #13
enne (OOO)
Thanks! This lgtm. danakj, do you want to take another look at this too?
7 years, 9 months ago (2013-03-25 19:45:55 UTC) #14
danakj
LGTM+nits https://codereview.chromium.org/12954006/diff/17001/cc/layers/picture_image_layer_impl.cc File cc/layers/picture_image_layer_impl.cc (right): https://codereview.chromium.org/12954006/diff/17001/cc/layers/picture_image_layer_impl.cc#newcode34 cc/layers/picture_image_layer_impl.cc:34: bool PictureImageLayerImpl::ShouldAdjustRasterScale(bool) const { please give the variable ...
7 years, 9 months ago (2013-03-25 20:13:03 UTC) #15
Xianzhu
https://codereview.chromium.org/12954006/diff/17001/cc/layers/picture_image_layer_impl.cc File cc/layers/picture_image_layer_impl.cc (right): https://codereview.chromium.org/12954006/diff/17001/cc/layers/picture_image_layer_impl.cc#newcode34 cc/layers/picture_image_layer_impl.cc:34: bool PictureImageLayerImpl::ShouldAdjustRasterScale(bool) const { On 2013/03/25 20:13:03, danakj wrote: ...
7 years, 9 months ago (2013-03-25 20:42:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/12954006/23001
7 years, 9 months ago (2013-03-25 20:44:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/12954006/23001
7 years, 9 months ago (2013-03-26 07:08:14 UTC) #18
commit-bot: I haz the power
7 years, 9 months ago (2013-03-26 09:24:46 UTC) #19
Message was sent while issue was closed.
Change committed as 190621

Powered by Google App Engine
This is Rietveld 408576698