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

Issue 1902893002: cc: Move calculation of content rect to RenderSurfaceImpl class (Closed)

Created:
4 years, 8 months ago by weiliangc
Modified:
4 years, 8 months ago
Reviewers:
ajuma
CC:
cc-bugs_chromium.org, chromium-reviews, enne (OOO), Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@targetid
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move calculation of content rect to RenderSurfaceImpl class Calculation of content rect used to live in LayerTreeHostCommon, but is only useful for render surface. Move it to RenderSurfaceImpl class. Render surface now hides the SetContentRect function. This also leads to deletion of helper function CalculateVisibleRect since it's only used in calculating content rect. BUG=504464 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/6da3286eca2180a66a6cb433f4d1f58f11011cfc Cr-Commit-Position: refs/heads/master@{#388520}

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : address review comments #

Patch Set 4 : fix error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -209 lines) Patch
M cc/layers/render_surface_impl.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 chunks +4 lines, -77 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 13 chunks +180 lines, -123 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (5 generated)
weiliangc
Still need to rebase, but the logic is the same. Please take a look.
4 years, 8 months ago (2016-04-19 18:00:04 UTC) #3
ajuma
lgtm https://codereview.chromium.org/1902893002/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/1902893002/diff/1/cc/layers/render_surface_impl.cc#newcode192 cc/layers/render_surface_impl.cc:192: // in inflationg due to axis-alignment. typo: inflation ...
4 years, 8 months ago (2016-04-19 19:20:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1902893002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1902893002/60001
4 years, 8 months ago (2016-04-20 15:58:51 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-20 16:40:25 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:24:22 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6da3286eca2180a66a6cb433f4d1f58f11011cfc
Cr-Commit-Position: refs/heads/master@{#388520}

Powered by Google App Engine
This is Rietveld 408576698