| 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 #include <MGL/mgl_types.h> | 9 #include <MGL/mgl_types.h> |
| 10 | 10 |
| 11 #include <deque> | 11 #include <deque> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "mojo/public/cpp/bindings/binding.h" | 16 #include "mojo/public/cpp/bindings/binding.h" |
| 17 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h" | 17 #include "mojo/services/geometry/interfaces/geometry.mojom.h" |
| 18 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" | 18 #include "mojo/services/gpu/interfaces/gpu.mojom.h" |
| 19 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" | 19 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" |
| 20 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" | 20 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
| 21 | 21 |
| 22 namespace mojo { | 22 namespace mojo { |
| 23 class Shell; | 23 class Shell; |
| 24 } | 24 } |
| 25 | 25 |
| 26 // A class that helps with drawing surfaces using GL. | 26 // A class that helps with drawing surfaces using GL. |
| 27 class GlHelper : public mojo::ResourceReturner { | 27 class GlHelper : public mojo::ResourceReturner { |
| 28 public: | 28 public: |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 uint32_t next_resource_id_; | 162 uint32_t next_resource_id_; |
| 163 std::vector<TextureInfo> textures_pending_return_; | 163 std::vector<TextureInfo> textures_pending_return_; |
| 164 | 164 |
| 165 base::WeakPtrFactory<GlHelper> weak_factory_; | 165 base::WeakPtrFactory<GlHelper> weak_factory_; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(GlHelper); | 167 DISALLOW_COPY_AND_ASSIGN(GlHelper); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // APPS_MOTERM_GL_HELPER_H_ | 170 #endif // APPS_MOTERM_GL_HELPER_H_ |
| OLD | NEW |