summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-05 06:55:03 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-05 06:55:03 +0000
commit34ba1ffb32e6b517f3051ae0cc32cdf783aab47d (patch)
treeda7444e0dda04a656d4a223016168efe3f260f9c /cc/trees/layer_tree_host.cc
parent514266b099e9e2177d230d3696c0f3835d5ffba7 (diff)
downloadchromium_src-34ba1ffb32e6b517f3051ae0cc32cdf783aab47d.zip
chromium_src-34ba1ffb32e6b517f3051ae0cc32cdf783aab47d.tar.gz
chromium_src-34ba1ffb32e6b517f3051ae0cc32cdf783aab47d.tar.bz2
cc: Clean up OcclusionTracker template parameters.
Currently it takes LayerType and RenderSurfaceType, but the latter is derivable from the former, so just pass the former. Since there's only one parameter, it's clearer to use OcclusionTracker<Layer(Impl)> directly instead of using typedefs. Also rename the TestOcclusionTracker file from occlusion_tracker_test_common.h to test_occlusion_tracker.h. R=enne BUG=344962 Review URL: https://codereview.chromium.org/183563003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host.cc')
-rw-r--r--cc/trees/layer_tree_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 097ad5da..2a8248e 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -989,7 +989,7 @@ void LayerTreeHost::PaintLayerContents(
settings_.show_overdraw_in_tracing &&
base::debug::TraceLog::GetInstance() &&
base::debug::TraceLog::GetInstance()->IsEnabled();
- OcclusionTracker occlusion_tracker(
+ OcclusionTracker<Layer> occlusion_tracker(
root_layer_->render_surface()->content_rect(), record_metrics_for_frame);
occlusion_tracker.set_minimum_tracking_size(
settings_.minimum_occlusion_tracking_size);