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

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
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 #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
OLDNEW
« cc/layer_updater.h ('K') | « 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