Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: examples/bitmap_uploader/bitmap_uploader.h

Issue 882083003: Remove mojo.SurfacesService interface in favor of mojo.Surface directly (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | examples/surfaces_app/child_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/services/geometry/public/interfaces/geometry.mojom.h" 12 #include "mojo/services/geometry/public/interfaces/geometry.mojom.h"
13 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" 13 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h"
14 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" 14 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h"
15 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" 15 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
16 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h"
17 16
18 namespace mojo { 17 namespace mojo {
19 class Shell; 18 class Shell;
20 class View; 19 class View;
21 20
22 // BitmapUploader is useful if you want to draw a bitmap or color in a View. 21 // BitmapUploader is useful if you want to draw a bitmap or color in a View.
23 class BitmapUploader : public SurfaceClient { 22 class BitmapUploader : public SurfaceClient {
24 public: 23 public:
25 explicit BitmapUploader(View* view); 24 explicit BitmapUploader(View* view);
26 virtual ~BitmapUploader(); 25 virtual ~BitmapUploader();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 uint32_t id_namespace_; 65 uint32_t id_namespace_;
67 uint32_t local_id_; 66 uint32_t local_id_;
68 base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_; 67 base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(BitmapUploader); 69 DISALLOW_COPY_AND_ASSIGN(BitmapUploader);
71 }; 70 };
72 71
73 } // namespace mojo 72 } // namespace mojo
74 73
75 #endif // EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_ 74 #endif // EXAMPLES_BITMAP_UPLOADER_BITMAP_UPLOADER_H_
OLDNEW
« no previous file with comments | « no previous file | examples/surfaces_app/child_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698