summaryrefslogtreecommitdiffstats
path: root/cc/CCLayerIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/CCLayerIterator.h')
-rw-r--r--cc/CCLayerIterator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/CCLayerIterator.h b/cc/CCLayerIterator.h
index 4d36080..7fc3af4 100644
--- a/cc/CCLayerIterator.h
+++ b/cc/CCLayerIterator.h
@@ -7,7 +7,7 @@
#include "CCLayerTreeHostCommon.h"
-#include "base/memory/ref_counted.h"
+#include <wtf/RefPtr.h>
namespace cc {
@@ -15,7 +15,7 @@ namespace cc {
// Example code follows, for a tree of LayerChromium/RenderSurfaceChromium objects. See below for details.
//
-// void doStuffOnLayers(const std::vector<scoped_refptr<LayerChromium> >& renderSurfaceLayerList)
+// void doStuffOnLayers(const Vector<RefPtr<LayerChromium> >& renderSurfaceLayerList)
// {
// typedef CCLayerIterator<LayerChromium, RenderSurfaceChromium, CCLayerIteratorActions::FrontToBack> CCLayerIteratorType;
//
@@ -131,13 +131,13 @@ private:
}
}
- if (start && !renderSurfaceLayerList->empty())
+ if (start && !renderSurfaceLayerList->isEmpty())
m_actions.begin(*this);
else
m_actions.end(*this);
}
- inline static LayerChromium* getRawPtr(const scoped_refptr<LayerChromium>& ptr) { return ptr.get(); }
+ inline static LayerChromium* getRawPtr(const RefPtr<LayerChromium>& ptr) { return ptr.get(); }
inline static CCLayerImpl* getRawPtr(CCLayerImpl* ptr) { return ptr; }
inline LayerType* currentLayer() const { return currentLayerRepresentsTargetRenderSurface() ? targetRenderSurfaceLayer() : getRawPtr(targetRenderSurfaceChildren()[m_currentLayerIndex]); }