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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/layer_updater.cc
diff --git a/cc/layer_updater.cc b/cc/layer_updater.cc
index 2b0f77573be20dbe9d405db9ca1daa0bf20ffb92..a22a2d335e7d45f2db9692b44de60fa18bca76ae 100644
--- a/cc/layer_updater.cc
+++ b/cc/layer_updater.cc
@@ -3,16 +3,20 @@
// found in the LICENSE file.
#include "cc/layer_updater.h"
+#include "cc/prioritized_resource.h"
danakj 2013/01/07 14:48:03 stylebot: 1 blank line after layer_updater.h
namespace cc {
LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture)
- : m_texture(texture.Pass())
-{
+ : m_texture(texture.Pass()) {
}
-LayerUpdater::Resource::~Resource()
-{
+void LayerUpdater::Resource::swapTextureWith(
+ scoped_ptr<PrioritizedResource>& texture) {
+ m_texture.swap(texture);
+}
+
+LayerUpdater::Resource::~Resource() {
}
} // namespace cc
« 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