summaryrefslogtreecommitdiffstats
path: root/cc/layer_updater.cc
blob: 2172952fc5568586d492f4d4aeebffd8298d778a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/layer_updater.h"

#include "cc/prioritized_resource.h"

namespace cc {

LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture)
    : m_texture(texture.Pass()) {
}

void LayerUpdater::Resource::swapTextureWith(
    scoped_ptr<PrioritizedResource>& texture) {
  m_texture.swap(texture);
}

LayerUpdater::Resource::~Resource() {
}

}  // namespace cc