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

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: Fix for tests that pass NULL resource_provider/context_provider. 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
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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 1671
1672 void LayerTreeHostImpl::CreateAndSetTileManager( 1672 void LayerTreeHostImpl::CreateAndSetTileManager(
1673 ResourceProvider* resource_provider, 1673 ResourceProvider* resource_provider,
1674 ContextProvider* context_provider, 1674 ContextProvider* context_provider,
1675 bool using_map_image) { 1675 bool using_map_image) {
1676 DCHECK(settings_.impl_side_painting); 1676 DCHECK(settings_.impl_side_painting);
1677 DCHECK(resource_provider); 1677 DCHECK(resource_provider);
1678 tile_manager_ = 1678 tile_manager_ =
1679 TileManager::Create(this, 1679 TileManager::Create(this,
1680 resource_provider, 1680 resource_provider,
1681 context_provider,
nduca 2013/12/02 19:50:17 I think you're better off passing in a GpuRasteriz
slavi 2013/12/04 02:06:50 That was done per enne request to avoid the need o
1681 settings_.num_raster_threads, 1682 settings_.num_raster_threads,
1682 rendering_stats_instrumentation_, 1683 rendering_stats_instrumentation_,
1683 using_map_image, 1684 using_map_image,
1684 GetMaxTransferBufferUsageBytes(context_provider), 1685 GetMaxTransferBufferUsageBytes(context_provider),
1685 GetMaxRasterTasksUsageBytes(context_provider), 1686 GetMaxRasterTasksUsageBytes(context_provider),
1686 GetMapImageTextureTarget(context_provider)); 1687 GetMapImageTextureTarget(context_provider));
1687 1688
1688 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy()); 1689 UpdateTileManagerMemoryPolicy(ActualManagedMemoryPolicy());
1689 need_to_update_visible_tiles_before_draw_ = false; 1690 need_to_update_visible_tiles_before_draw_ = false;
1690 } 1691 }
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 if (evicted_ui_resources_.empty()) 2866 if (evicted_ui_resources_.empty())
2866 client_->OnCanDrawStateChanged(CanDraw()); 2867 client_->OnCanDrawStateChanged(CanDraw());
2867 } 2868 }
2868 2869
2869 void LayerTreeHostImpl::ScheduleMicroBenchmark( 2870 void LayerTreeHostImpl::ScheduleMicroBenchmark(
2870 scoped_ptr<MicroBenchmarkImpl> benchmark) { 2871 scoped_ptr<MicroBenchmarkImpl> benchmark) {
2871 micro_benchmark_controller_.ScheduleRun(benchmark.Pass()); 2872 micro_benchmark_controller_.ScheduleRun(benchmark.Pass());
2872 } 2873 }
2873 2874
2874 } // namespace cc 2875 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698