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

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

Issue 69343005: Added preliminary support for tile rasterization with Ganesh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reveman's comments. Created 7 years 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
« cc/resources/gpu_rasterizer.h ('K') | « 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 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 pending_tree_->set_needs_update_draw_properties(); 1663 pending_tree_->set_needs_update_draw_properties();
1664 } 1664 }
1665 } 1665 }
1666 1666
1667 void LayerTreeHostImpl::CreateAndSetTileManager( 1667 void LayerTreeHostImpl::CreateAndSetTileManager(
1668 ResourceProvider* resource_provider, 1668 ResourceProvider* resource_provider,
1669 ContextProvider* context_provider, 1669 ContextProvider* context_provider,
1670 bool using_map_image) { 1670 bool using_map_image) {
1671 DCHECK(settings_.impl_side_painting); 1671 DCHECK(settings_.impl_side_painting);
1672 DCHECK(resource_provider); 1672 DCHECK(resource_provider);
1673 // TODO(skaslev) Change this to use the --enable-gpu-rasterizing from
1674 // @humper's patch.
1675 const bool use_gpu_rasterizing = true;
1673 tile_manager_ = 1676 tile_manager_ =
1674 TileManager::Create(this, 1677 TileManager::Create(this,
1675 resource_provider, 1678 resource_provider,
1679 context_provider,
1676 settings_.num_raster_threads, 1680 settings_.num_raster_threads,
1677 rendering_stats_instrumentation_, 1681 rendering_stats_instrumentation_,
1682 use_gpu_rasterizing,
1678 using_map_image, 1683 using_map_image,
1679 GetMaxTransferBufferUsageBytes(context_provider), 1684 GetMaxTransferBufferUsageBytes(context_provider),
1680 GetMaxRasterTasksUsageBytes(context_provider), 1685 GetMaxRasterTasksUsageBytes(context_provider),
1681 GetMapImageTextureTarget(context_provider)); 1686 GetMapImageTextureTarget(context_provider));
1682 1687
1683 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); 1688 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
1684 need_to_update_visible_tiles_before_draw_ = false; 1689 need_to_update_visible_tiles_before_draw_ = false;
1685 } 1690 }
1686 1691
1687 void LayerTreeHostImpl::EnforceZeroBudget(bool zero_budget) { 1692 void LayerTreeHostImpl::EnforceZeroBudget(bool zero_budget) {
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2860 if (evicted_ui_resources_.empty()) 2865 if (evicted_ui_resources_.empty())
2861 client_->OnCanDrawStateChanged(CanDraw()); 2866 client_->OnCanDrawStateChanged(CanDraw());
2862 } 2867 }
2863 2868
2864 void LayerTreeHostImpl::ScheduleMicroBenchmark( 2869 void LayerTreeHostImpl::ScheduleMicroBenchmark(
2865 scoped_ptr<MicroBenchmarkImpl> benchmark) { 2870 scoped_ptr<MicroBenchmarkImpl> benchmark) {
2866 micro_benchmark_controller_.ScheduleRun(benchmark.Pass()); 2871 micro_benchmark_controller_.ScheduleRun(benchmark.Pass());
2867 } 2872 }
2868 2873
2869 } // namespace cc 2874 } // namespace cc
OLDNEW
« cc/resources/gpu_rasterizer.h ('K') | « cc/test/fake_tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698