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

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

Issue 110883015: Add preliminary support for hw-accelerated tile rasterization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avoid implementing TestContextProvider::GrContext for now Created 6 years, 11 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/test/fake_tile_manager.cc ('k') | 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 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 1713
1714 void LayerTreeHostImpl::CreateAndSetTileManager( 1714 void LayerTreeHostImpl::CreateAndSetTileManager(
1715 ResourceProvider* resource_provider, 1715 ResourceProvider* resource_provider,
1716 ContextProvider* context_provider, 1716 ContextProvider* context_provider,
1717 bool using_map_image) { 1717 bool using_map_image) {
1718 DCHECK(settings_.impl_side_painting); 1718 DCHECK(settings_.impl_side_painting);
1719 DCHECK(resource_provider); 1719 DCHECK(resource_provider);
1720 tile_manager_ = 1720 tile_manager_ =
1721 TileManager::Create(this, 1721 TileManager::Create(this,
1722 resource_provider, 1722 resource_provider,
1723 context_provider,
1723 settings_.num_raster_threads, 1724 settings_.num_raster_threads,
1724 rendering_stats_instrumentation_, 1725 rendering_stats_instrumentation_,
1725 using_map_image, 1726 using_map_image,
1726 GetMaxTransferBufferUsageBytes(context_provider), 1727 GetMaxTransferBufferUsageBytes(context_provider),
1727 GetMaxRasterTasksUsageBytes(context_provider), 1728 GetMaxRasterTasksUsageBytes(context_provider),
1728 GetMapImageTextureTarget(context_provider)); 1729 GetMapImageTextureTarget(context_provider));
1729 1730
1730 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); 1731 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
1731 need_to_update_visible_tiles_before_draw_ = false; 1732 need_to_update_visible_tiles_before_draw_ = false;
1732 } 1733 }
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2914 swap_promise_monitor_.erase(monitor); 2915 swap_promise_monitor_.erase(monitor);
2915 } 2916 }
2916 2917
2917 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { 2918 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() {
2918 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); 2919 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin();
2919 for (; it != swap_promise_monitor_.end(); it++) 2920 for (; it != swap_promise_monitor_.end(); it++)
2920 (*it)->OnSetNeedsRedrawOnImpl(); 2921 (*it)->OnSetNeedsRedrawOnImpl();
2921 } 2922 }
2922 2923
2923 } // namespace cc 2924 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698