| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ | 5 #ifndef EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ |
| 6 #define EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ | 6 #define EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "mojo/public/c/gles2/gles2.h" | 11 #include "mojo/public/c/gles2/gles2.h" |
| 12 #include "mojo/public/cpp/bindings/binding.h" |
| 12 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h" | 13 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h" |
| 13 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" | 14 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" |
| 14 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" | 15 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.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 class Shell; | 19 class Shell; |
| 19 class View; | 20 class View; |
| 20 | 21 |
| 21 // BitmapUploader is useful if you want to draw a bitmap or color in a View. | 22 // BitmapUploader is useful if you want to draw a bitmap or color in a View. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 uint32_t local_id_; | 68 uint32_t local_id_; |
| 68 base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_; | 69 base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_; |
| 69 mojo::Binding<mojo::ResourceReturner> returner_binding_; | 70 mojo::Binding<mojo::ResourceReturner> returner_binding_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(BitmapUploader); | 72 DISALLOW_COPY_AND_ASSIGN(BitmapUploader); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace mojo | 75 } // namespace mojo |
| 75 | 76 |
| 76 #endif // EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ | 77 #endif // EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ |
| OLD | NEW |