summaryrefslogtreecommitdiffstats
path: root/cc/debug/debug_rect_history.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 20:51:28 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 20:51:28 +0000
commit50761e91bb7255a901c66d1336612ce40a75728b (patch)
tree113d49f70c8acbbe2622d6a9298d5ef8cfc588b3 /cc/debug/debug_rect_history.cc
parent41e52fb588e0ced58dc1e6d93797a0e54004be27 (diff)
downloadchromium_src-50761e91bb7255a901c66d1336612ce40a75728b.zip
chromium_src-50761e91bb7255a901c66d1336612ce40a75728b.tar.gz
chromium_src-50761e91bb7255a901c66d1336612ce40a75728b.tar.bz2
cc: Consolidate LayerList types.
We currently have Layer::LayerList, LayerImpl::LayerList, LayerTreeHost::LayerList and LayerTreeHostImpl::LayerList, as well as LayerTreeImpl::LayerList, LayerSorter::LayerList, and I think some more. This patch consolidates the list typedefs into three types: LayerList, LayerImplList, and OwnedLayerImplList. LayerList and LayerImplList are the output of CalculateDrawProperties. While OwnedLayerImplList is a list that owns the layer pointers in it, ie ScopedPtrVector. R=jamesr Review URL: https://codereview.chromium.org/13285002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/debug_rect_history.cc')
-rw-r--r--cc/debug/debug_rect_history.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc
index 6433d8b..7eaf6ab 100644
--- a/cc/debug/debug_rect_history.cc
+++ b/cc/debug/debug_rect_history.cc
@@ -6,6 +6,7 @@
#include "cc/base/math_util.h"
#include "cc/layers/layer_impl.h"
+#include "cc/layers/render_surface_impl.h"
#include "cc/trees/damage_tracker.h"
#include "cc/trees/layer_tree_host.h"
@@ -22,7 +23,7 @@ DebugRectHistory::~DebugRectHistory() {}
void DebugRectHistory::SaveDebugRectsForCurrentFrame(
LayerImpl* root_layer,
- const std::vector<LayerImpl*>& render_surface_layer_list,
+ const LayerImplList& render_surface_layer_list,
const std::vector<gfx::Rect>& occluding_screen_space_rects,
const std::vector<gfx::Rect>& non_occluding_screen_space_rects,
const LayerTreeDebugState& debug_state) {
@@ -73,7 +74,7 @@ void DebugRectHistory::SavePaintRects(LayerImpl* layer) {
}
void DebugRectHistory::SavePropertyChangedRects(
- const std::vector<LayerImpl*>& render_surface_layer_list) {
+ const LayerImplList& render_surface_layer_list) {
for (int surface_index = render_surface_layer_list.size() - 1;
surface_index >= 0;
--surface_index) {
@@ -81,7 +82,7 @@ void DebugRectHistory::SavePropertyChangedRects(
RenderSurfaceImpl* render_surface = render_surface_layer->render_surface();
DCHECK(render_surface);
- const std::vector<LayerImpl*>& layer_list = render_surface->layer_list();
+ const LayerImplList& layer_list = render_surface->layer_list();
for (unsigned layer_index = 0;
layer_index < layer_list.size();
++layer_index) {
@@ -107,7 +108,7 @@ void DebugRectHistory::SavePropertyChangedRects(
}
void DebugRectHistory::SaveSurfaceDamageRects(
- const std::vector<LayerImpl*>& render_surface_layer_list) {
+ const LayerImplList& render_surface_layer_list) {
for (int surface_index = render_surface_layer_list.size() - 1;
surface_index >= 0;
--surface_index) {
@@ -124,7 +125,7 @@ void DebugRectHistory::SaveSurfaceDamageRects(
}
void DebugRectHistory::SaveScreenSpaceRects(
- const std::vector<LayerImpl*>& render_surface_layer_list) {
+ const LayerImplList& render_surface_layer_list) {
for (int surface_index = render_surface_layer_list.size() - 1;
surface_index >= 0;
--surface_index) {