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

Unified Diff: sky/compositor/resource_manager.h

Issue 868263002: Sky shouldn't crash on device rotate (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
« no previous file with comments | « sky/compositor/BUILD.gn ('k') | sky/compositor/resource_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/resource_manager.h
diff --git a/sky/compositor/resource_manager.h b/sky/compositor/resource_manager.h
index cd1ebdde7ee7c25ffced6dffc581584cc6a6795a..e6fd329dd4e3736dda87a9726678b2ae0334f57c 100644
--- a/sky/compositor/resource_manager.h
+++ b/sky/compositor/resource_manager.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
+#include "sky/compositor/texture_cache.h"
namespace gfx {
class Size;
@@ -38,12 +39,11 @@ class ResourceManager {
base::WeakPtr<mojo::GLContext> gl_context_;
uint32_t next_resource_id_;
base::hash_map<uint32_t, mojo::GLTexture*> resource_to_texture_map_;
-
- ScopedVector<mojo::GLTexture> available_textures_;
+ TextureCache texture_cache_;
DISALLOW_COPY_AND_ASSIGN(ResourceManager);
};
-} // namespace examples
+} // namespace sky
#endif // SKY_COMPOSITOR_RESOURCE_MANAGER_H_
« no previous file with comments | « sky/compositor/BUILD.gn ('k') | sky/compositor/resource_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698