summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host_impl.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-20 19:55:39 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-20 19:55:39 +0000
commit217a89aefa99bba10b3f8c95ad10d894aca525c2 (patch)
tree47f9ecf6a722a91169bbd91e417c94281356ee0f /cc/layer_tree_host_impl.cc
parentc8893e6aa988558f63ff0237c088e5da8c4a9058 (diff)
downloadchromium_src-217a89aefa99bba10b3f8c95ad10d894aca525c2.zip
chromium_src-217a89aefa99bba10b3f8c95ad10d894aca525c2.tar.gz
chromium_src-217a89aefa99bba10b3f8c95ad10d894aca525c2.tar.bz2
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 Review URL: https://chromiumcodereview.appspot.com/11821015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host_impl.cc')
-rw-r--r--cc/layer_tree_host_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 72d6a8c..6b63b39 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -535,6 +535,7 @@ bool LayerTreeHostImpl::calculateRenderPasses(FrameData& frame)
!= frame.renderPassesById.end());
}
#endif
+ DCHECK(frame.renderPasses.back()->output_rect.origin().IsOrigin());
if (!activeTree()->has_transparent_background()) {
frame.renderPasses.back()->has_transparent_background = false;