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

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

Issue 151093005: cc: Update Main RendererCapabilities on DeferredInitialize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back a DCHECK that was accdentially deleted Created 6 years, 10 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 | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | 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 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after
1737 if (renderer_) { 1737 if (renderer_) {
1738 renderer_->SetVisible(visible_); 1738 renderer_->SetVisible(visible_);
1739 SetFullRootLayerDamage(); 1739 SetFullRootLayerDamage();
1740 1740
1741 // See note in LayerTreeImpl::UpdateDrawProperties. Renderer needs to be 1741 // See note in LayerTreeImpl::UpdateDrawProperties. Renderer needs to be
1742 // initialized to get max texture size. Also, after releasing resources, 1742 // initialized to get max texture size. Also, after releasing resources,
1743 // trees need another update to generate new ones. 1743 // trees need another update to generate new ones.
1744 active_tree_->set_needs_update_draw_properties(); 1744 active_tree_->set_needs_update_draw_properties();
1745 if (pending_tree_) 1745 if (pending_tree_)
1746 pending_tree_->set_needs_update_draw_properties(); 1746 pending_tree_->set_needs_update_draw_properties();
1747 client_->UpdateRendererCapabilitiesOnImplThread();
1747 } 1748 }
1748 } 1749 }
1749 1750
1750 void LayerTreeHostImpl::CreateAndSetTileManager( 1751 void LayerTreeHostImpl::CreateAndSetTileManager(
1751 ResourceProvider* resource_provider, 1752 ResourceProvider* resource_provider,
1752 ContextProvider* context_provider, 1753 ContextProvider* context_provider,
1753 bool using_map_image, 1754 bool using_map_image,
1754 bool allow_rasterize_on_demand) { 1755 bool allow_rasterize_on_demand) {
1755 DCHECK(settings_.impl_side_painting); 1756 DCHECK(settings_.impl_side_painting);
1756 DCHECK(resource_provider); 1757 DCHECK(resource_provider);
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2998 swap_promise_monitor_.erase(monitor); 2999 swap_promise_monitor_.erase(monitor);
2999 } 3000 }
3000 3001
3001 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { 3002 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() {
3002 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); 3003 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin();
3003 for (; it != swap_promise_monitor_.end(); it++) 3004 for (; it != swap_promise_monitor_.end(); it++)
3004 (*it)->OnSetNeedsRedrawOnImpl(); 3005 (*it)->OnSetNeedsRedrawOnImpl();
3005 } 3006 }
3006 3007
3007 } // namespace cc 3008 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698