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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 381703002: Explicitly resize inner viewport container layer on SetViewportSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: set_needs_update_draw_properties Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 return; 2105 return;
2106 2106
2107 if (pending_tree_) 2107 if (pending_tree_)
2108 active_tree_->SetViewportSizeInvalid(); 2108 active_tree_->SetViewportSizeInvalid();
2109 2109
2110 device_viewport_size_ = device_viewport_size; 2110 device_viewport_size_ = device_viewport_size;
2111 2111
2112 UpdateInnerViewportContainerSize(); 2112 UpdateInnerViewportContainerSize();
2113 client_->OnCanDrawStateChanged(CanDraw()); 2113 client_->OnCanDrawStateChanged(CanDraw());
2114 SetFullRootLayerDamage(); 2114 SetFullRootLayerDamage();
2115 active_tree_->set_needs_update_draw_properties();
2115 } 2116 }
2116 2117
2117 void LayerTreeHostImpl::SetOverdrawBottomHeight(float overdraw_bottom_height) { 2118 void LayerTreeHostImpl::SetOverdrawBottomHeight(float overdraw_bottom_height) {
2118 if (overdraw_bottom_height == overdraw_bottom_height_) 2119 if (overdraw_bottom_height == overdraw_bottom_height_)
2119 return; 2120 return;
2120 overdraw_bottom_height_ = overdraw_bottom_height; 2121 overdraw_bottom_height_ = overdraw_bottom_height;
2121 2122
2122 UpdateInnerViewportContainerSize(); 2123 UpdateInnerViewportContainerSize();
2123 SetFullRootLayerDamage(); 2124 SetFullRootLayerDamage();
2124 } 2125 }
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
3242 } 3243 }
3243 3244
3244 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3245 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3245 std::vector<PictureLayerImpl*>::iterator it = 3246 std::vector<PictureLayerImpl*>::iterator it =
3246 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3247 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3247 DCHECK(it != picture_layers_.end()); 3248 DCHECK(it != picture_layers_.end());
3248 picture_layers_.erase(it); 3249 picture_layers_.erase(it);
3249 } 3250 }
3250 3251
3251 } // namespace cc 3252 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698