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"
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() {