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

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
« no previous file with comments | « cc/layer_updater.h ('k') | cc/nine_patch_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_updater.cc
diff --git a/cc/layer_updater.cc b/cc/layer_updater.cc
index 2b0f77573be20dbe9d405db9ca1daa0bf20ffb92..2172952fc5568586d492f4d4aeebffd8298d778a 100644
--- a/cc/layer_updater.cc
+++ b/cc/layer_updater.cc
@@ -4,15 +4,20 @@
#include "cc/layer_updater.h"
+#include "cc/prioritized_resource.h"
+
namespace cc {
LayerUpdater::Resource::Resource(scoped_ptr<PrioritizedResource> texture)
- : m_texture(texture.Pass())
-{
+ : m_texture(texture.Pass()) {
+}
+
+void LayerUpdater::Resource::swapTextureWith(
+ scoped_ptr<PrioritizedResource>& texture) {
+ m_texture.swap(texture);
}
-LayerUpdater::Resource::~Resource()
-{
+LayerUpdater::Resource::~Resource() {
}
} // namespace cc
« 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