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 <MGL/mgl_types.h> | 8 #include <MGL/mgl_types.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
14 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h" | 14 #include "mojo/services/geometry/interfaces/geometry.mojom.h" |
15 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" | 15 #include "mojo/services/gpu/interfaces/gpu.mojom.h" |
16 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" | 16 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" |
17 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" | 17 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 class Shell; | 20 class Shell; |
21 class View; | 21 class View; |
22 | 22 |
23 // BitmapUploader is useful if you want to draw a bitmap or color in a View. | 23 // BitmapUploader is useful if you want to draw a bitmap or color in a View. |
24 class BitmapUploader : public ResourceReturner { | 24 class BitmapUploader : public ResourceReturner { |
25 public: | 25 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 uint32_t local_id_; | 69 uint32_t local_id_; |
70 base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_; | 70 base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_; |
71 mojo::Binding<mojo::ResourceReturner> returner_binding_; | 71 mojo::Binding<mojo::ResourceReturner> returner_binding_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(BitmapUploader); | 73 DISALLOW_COPY_AND_ASSIGN(BitmapUploader); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace mojo | 76 } // namespace mojo |
77 | 77 |
78 #endif // EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ | 78 #endif // EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ |
OLD | NEW |