WebKit Roll 139512:139548
[chromium-blink-merge.git] / cc / layer_updater.cc
blob2172952fc5568586d492f4d4aeebffd8298d778a
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
3 // found in the LICENSE file.
5 #include "cc/layer_updater.h"
7 #include "cc/prioritized_resource.h"
9 namespace cc {
11 LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture)
12 : m_texture(texture.Pass()) {
15 void LayerUpdater::Resource::swapTextureWith(
16 scoped_ptr<PrioritizedResource>& texture) {
17 m_texture.swap(texture);
20 LayerUpdater::Resource::~Resource() {
23 } // namespace cc