Index: cc/layer_updater.cc |
diff --git a/cc/layer_updater.cc b/cc/layer_updater.cc |
index 2b0f77573be20dbe9d405db9ca1daa0bf20ffb92..2172952fc5568586d492f4d4aeebffd8298d778a 100644 |
--- a/cc/layer_updater.cc |
+++ b/cc/layer_updater.cc |
@@ -4,15 +4,20 @@ |
#include "cc/layer_updater.h" |
+#include "cc/prioritized_resource.h" |
+ |
namespace cc { |
LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture) |
- : m_texture(texture.Pass()) |
-{ |
+ : m_texture(texture.Pass()) { |
+} |
+ |
+void LayerUpdater::Resource::swapTextureWith( |
+ scoped_ptr<PrioritizedResource>& texture) { |
+ m_texture.swap(texture); |
} |
-LayerUpdater::Resource::~Resource() |
-{ |
+LayerUpdater::Resource::~Resource() { |
} |
} // namespace cc |