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

Unified Diff: sky/compositor/resource_manager.h

Issue 845963006: The Sky compositor should recycle textures (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: sky/compositor/resource_manager.h
diff --git a/sky/compositor/resource_manager.h b/sky/compositor/resource_manager.h
index 9c9b5c97ec071c5d3b05d08e28d5507a6e79077a..cd1ebdde7ee7c25ffced6dffc581584cc6a6795a 100644
--- a/sky/compositor/resource_manager.h
+++ b/sky/compositor/resource_manager.h
@@ -6,6 +6,8 @@
#define SKY_COMPOSITOR_RESOURCE_MANAGER_H_
#include "base/containers/hash_tables.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
@@ -37,6 +39,8 @@ class ResourceManager {
uint32_t next_resource_id_;
base::hash_map<uint32_t, mojo::GLTexture*> resource_to_texture_map_;
+ ScopedVector<mojo::GLTexture> available_textures_;
+
DISALLOW_COPY_AND_ASSIGN(ResourceManager);
};

Powered by Google App Engine
This is Rietveld 408576698