Chromium Code Reviews| Index: cc/layer_updater.cc |
| diff --git a/cc/layer_updater.cc b/cc/layer_updater.cc |
| index 2b0f77573be20dbe9d405db9ca1daa0bf20ffb92..a22a2d335e7d45f2db9692b44de60fa18bca76ae 100644 |
| --- a/cc/layer_updater.cc |
| +++ b/cc/layer_updater.cc |
| @@ -3,16 +3,20 @@ |
| // found in the LICENSE file. |
| #include "cc/layer_updater.h" |
| +#include "cc/prioritized_resource.h" |
|
danakj
2013/01/07 14:48:03
stylebot: 1 blank line after layer_updater.h
|
| namespace cc { |
| LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture) |
| - : m_texture(texture.Pass()) |
| -{ |
| + : m_texture(texture.Pass()) { |
| } |
| -LayerUpdater::Resource::~Resource() |
| -{ |
| +void LayerUpdater::Resource::swapTextureWith( |
| + scoped_ptr<PrioritizedResource>& texture) { |
| + m_texture.swap(texture); |
| +} |
| + |
| +LayerUpdater::Resource::~Resource() { |
| } |
| } // namespace cc |