Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Side by Side Diff: cc/layer_updater.cc

Issue 11794019: Avoid exposing gl bindings through cc public API headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layer_updater.h ('k') | cc/nine_patch_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6
7 #include "cc/prioritized_resource.h"
8
7 namespace cc { 9 namespace cc {
8 10
9 LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture) 11 LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture)
10 : m_texture(texture.Pass()) 12 : m_texture(texture.Pass()) {
11 {
12 } 13 }
13 14
14 LayerUpdater::Resource::~Resource() 15 void LayerUpdater::Resource::swapTextureWith(
15 { 16 scoped_ptr<PrioritizedResource>& texture) {
17 m_texture.swap(texture);
18 }
19
20 LayerUpdater::Resource::~Resource() {
16 } 21 }
17 22
18 } // namespace cc 23 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_updater.h ('k') | cc/nine_patch_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698