| 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 APPS_MOTERM_GL_HELPER_H_ | 5 #ifndef APPS_MOTERM_GL_HELPER_H_ |
| 6 #define APPS_MOTERM_GL_HELPER_H_ | 6 #define APPS_MOTERM_GL_HELPER_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "mojo/public/c/gles2/gles2_types.h" | 15 #include "mojo/public/c/gles2/gles2_types.h" |
| 16 #include "mojo/public/cpp/bindings/binding.h" |
| 16 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h" | 17 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h" |
| 17 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" | 18 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" |
| 18 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" | 19 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" |
| 19 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" | 20 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
| 20 | 21 |
| 21 namespace mojo { | 22 namespace mojo { |
| 22 class Shell; | 23 class Shell; |
| 23 } | 24 } |
| 24 | 25 |
| 25 // A class that helps with drawing surfaces using GL. | 26 // A class that helps with drawing surfaces using GL. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 158 |
| 158 uint32_t next_resource_id_; | 159 uint32_t next_resource_id_; |
| 159 std::vector<TextureInfo> textures_pending_return_; | 160 std::vector<TextureInfo> textures_pending_return_; |
| 160 | 161 |
| 161 base::WeakPtrFactory<GlHelper> weak_factory_; | 162 base::WeakPtrFactory<GlHelper> weak_factory_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(GlHelper); | 164 DISALLOW_COPY_AND_ASSIGN(GlHelper); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 #endif // APPS_MOTERM_GL_HELPER_H_ | 167 #endif // APPS_MOTERM_GL_HELPER_H_ |
| OLD | NEW |