OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/layer_updater.h" | 5 #include "cc/layer_updater.h" |
6 #include "cc/prioritized_resource.h" | |
danakj
2013/01/07 14:48:03
stylebot: 1 blank line after layer_updater.h
| |
6 | 7 |
7 namespace cc { | 8 namespace cc { |
8 | 9 |
9 LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture) | 10 LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture) |
10 : m_texture(texture.Pass()) | 11 : m_texture(texture.Pass()) { |
11 { | |
12 } | 12 } |
13 | 13 |
14 LayerUpdater::Resource::~Resource() | 14 void LayerUpdater::Resource::swapTextureWith( |
15 { | 15 scoped_ptr<PrioritizedResource>& texture) { |
16 m_texture.swap(texture); | |
17 } | |
18 | |
19 LayerUpdater::Resource::~Resource() { | |
16 } | 20 } |
17 | 21 |
18 } // namespace cc | 22 } // namespace cc |
OLD | NEW |