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

Issue 11821015: cc: Use the size of the source frame along with the source frame's renderpasses (Closed)

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

Description

cc: Use the size of the source frame along with the source frame's renderpasses Scale the contents of the source frame to fit exactly in the bounds of the delegated renderer layer. When the host window is being resized, it can keep the delegated renderer layer at the size it wants the output displayed, and clip it with a containing layer until the resize is complete and it has a new frame to show at the right size. Tests: DelegatedRendererLayerImplTestSharedData.SharedData DelegatedRendererLayerImplTestSharedData.DisplaySize BUG=123444 R=enne NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177878

Patch Set 1 #

Total comments: 3

Patch Set 2 : bettar #

Patch Set 3 : #

Patch Set 4 : add displaySize() #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -12 lines) Patch
M cc/delegated_frame_data.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/delegated_renderer_layer_impl.h View 1 2 3 2 chunks +7 lines, -1 line 2 comments Download
M cc/delegated_renderer_layer_impl.cc View 1 2 3 3 chunks +20 lines, -7 lines 1 comment Download
M cc/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 chunks +53 lines, -4 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
danakj
7 years, 11 months ago (2013-01-09 02:45:54 UTC) #1
enne (OOO)
https://codereview.chromium.org/11821015/diff/1/cc/delegated_renderer_layer_impl.h File cc/delegated_renderer_layer_impl.h (right): https://codereview.chromium.org/11821015/diff/1/cc/delegated_renderer_layer_impl.h#newcode48 cc/delegated_renderer_layer_impl.h:48: gfx::Size m_frameSize; Is this redundant with the root render ...
7 years, 11 months ago (2013-01-09 02:48:20 UTC) #2
danakj
https://codereview.chromium.org/11821015/diff/1/cc/delegated_renderer_layer_impl.h File cc/delegated_renderer_layer_impl.h (right): https://codereview.chromium.org/11821015/diff/1/cc/delegated_renderer_layer_impl.h#newcode48 cc/delegated_renderer_layer_impl.h:48: gfx::Size m_frameSize; On 2013/01/09 02:48:20, enne wrote: > Is ...
7 years, 11 months ago (2013-01-09 02:55:49 UTC) #3
danakj
PTAL
7 years, 11 months ago (2013-01-09 03:04:44 UTC) #4
enne (OOO)
lgtm
7 years, 11 months ago (2013-01-09 03:28:32 UTC) #5
piman
Relying on an extra layer to do clipping during resize is unfortunate, and will make ...
7 years, 11 months ago (2013-01-09 18:17:08 UTC) #6
danakj
On 2013/01/09 18:17:08, piman wrote: > Relying on an extra layer to do clipping during ...
7 years, 11 months ago (2013-01-09 21:43:24 UTC) #7
enne (OOO)
On 2013/01/09 21:43:24, danakj wrote: > Unless I'm forgetting some other clip mechanism right now, ...
7 years, 11 months ago (2013-01-09 21:45:12 UTC) #8
danakj
On Wed, Jan 9, 2013 at 4:45 PM, <enne@chromium.org> wrote: > On 2013/01/09 21:43:24, danakj ...
7 years, 11 months ago (2013-01-09 21:47:28 UTC) #9
piman
On Wed, Jan 9, 2013 at 1:43 PM, <danakj@chromium.org> wrote: > On 2013/01/09 18:17:08, piman ...
7 years, 11 months ago (2013-01-09 22:48:29 UTC) #10
danakj
On 2013/01/09 22:48:29, piman wrote: > In ui::Layer we do size the cc::Layer appropriately based ...
7 years, 11 months ago (2013-01-19 00:17:35 UTC) #11
piman
On Fri, Jan 18, 2013 at 4:17 PM, <danakj@chromium.org> wrote: > On 2013/01/09 22:48:29, piman ...
7 years, 11 months ago (2013-01-19 00:36:17 UTC) #12
danakj
piman@ PTAL. added displaySize() along with a test.
7 years, 11 months ago (2013-01-19 01:48:25 UTC) #13
piman
https://codereview.chromium.org/11821015/diff/12002/cc/delegated_renderer_layer_impl.cc File cc/delegated_renderer_layer_impl.cc (right): https://codereview.chromium.org/11821015/diff/12002/cc/delegated_renderer_layer_impl.cc#newcode159 cc/delegated_renderer_layer_impl.cc:159: static_cast<double>(displaySize.height()) / frameSize.height()); perf nit: should we factor out ...
7 years, 11 months ago (2013-01-19 02:02:47 UTC) #14
danakj
https://codereview.chromium.org/11821015/diff/12002/cc/delegated_renderer_layer_impl.h File cc/delegated_renderer_layer_impl.h (right): https://codereview.chromium.org/11821015/diff/12002/cc/delegated_renderer_layer_impl.h#newcode29 cc/delegated_renderer_layer_impl.h:29: void setDisplaySize(gfx::Size displaySize) { m_displaySize = displaySize; } On ...
7 years, 11 months ago (2013-01-19 02:10:26 UTC) #15
piman
On 2013/01/19 02:10:26, danakj wrote: > https://codereview.chromium.org/11821015/diff/12002/cc/delegated_renderer_layer_impl.h > File cc/delegated_renderer_layer_impl.h (right): > > https://codereview.chromium.org/11821015/diff/12002/cc/delegated_renderer_layer_impl.h#newcode29 > ...
7 years, 11 months ago (2013-01-19 02:40:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11821015/12002
7 years, 11 months ago (2013-01-19 06:30:32 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=75868
7 years, 11 months ago (2013-01-19 08:56:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11821015/12002
7 years, 11 months ago (2013-01-19 16:18:15 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=75885
7 years, 11 months ago (2013-01-19 18:24:50 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11821015/12002
7 years, 11 months ago (2013-01-20 17:00:07 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=75965
7 years, 11 months ago (2013-01-20 19:25:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11821015/12002
7 years, 11 months ago (2013-01-20 19:55:30 UTC) #23
commit-bot: I haz the power
7 years, 11 months ago (2013-01-20 19:55:41 UTC) #24
Message was sent while issue was closed.
Change committed as 177878

Powered by Google App Engine
This is Rietveld 408576698