| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef MOJO_GPU_TEXTURE_CACHE_H_ | 5 #ifndef MOJO_GPU_TEXTURE_CACHE_H_ |
| 6 #define MOJO_GPU_TEXTURE_CACHE_H_ | 6 #define MOJO_GPU_TEXTURE_CACHE_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "mojo/public/cpp/bindings/binding.h" |
| 15 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" | 16 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
| 16 | 17 |
| 17 namespace mojo { | 18 namespace mojo { |
| 18 | 19 |
| 19 class GLContext; | 20 class GLContext; |
| 20 class GLTexture; | 21 class GLTexture; |
| 21 class Size; | 22 class Size; |
| 22 | 23 |
| 23 // Represents a cache of textures which can be drawn to and submitted to a | 24 // Represents a cache of textures which can be drawn to and submitted to a |
| 24 // surface. | 25 // surface. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 std::map<uint32_t, scoped_ptr<mojo::GLTexture>> resource_to_texture_map_; | 71 std::map<uint32_t, scoped_ptr<mojo::GLTexture>> resource_to_texture_map_; |
| 71 std::map<uint32_t, GLuint> resource_to_sync_point_map_; | 72 std::map<uint32_t, GLuint> resource_to_sync_point_map_; |
| 72 uint32_t next_resource_id_; | 73 uint32_t next_resource_id_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(TextureCache); | 75 DISALLOW_COPY_AND_ASSIGN(TextureCache); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace mojo | 78 } // namespace mojo |
| 78 | 79 |
| 79 #endif // MOJO_GPU_TEXTURE_CACHE_H_ | 80 #endif // MOJO_GPU_TEXTURE_CACHE_H_ |
| OLD | NEW |