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

Unified Diff: examples/bitmap_uploader/bitmap_uploader.h

Issue 871373015: De-Client Surface interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | examples/bitmap_uploader/bitmap_uploader.cc » ('j') | examples/ganesh_app/texture_uploader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/bitmap_uploader/bitmap_uploader.h
diff --git a/examples/bitmap_uploader/bitmap_uploader.h b/examples/bitmap_uploader/bitmap_uploader.h
index 6b0f8048e2e454e6d783409d249aca4699603b26..5800e9d2c63a6ed0896f3ac8a745369230f4a099 100644
--- a/examples/bitmap_uploader/bitmap_uploader.h
+++ b/examples/bitmap_uploader/bitmap_uploader.h
@@ -19,7 +19,7 @@ class Shell;
class View;
// BitmapUploader is useful if you want to draw a bitmap or color in a View.
-class BitmapUploader : public SurfaceClient {
+class BitmapUploader : public ResourceReturner {
public:
explicit BitmapUploader(View* view);
virtual ~BitmapUploader();
@@ -45,8 +45,8 @@ class BitmapUploader : public SurfaceClient {
uint32_t BindTextureForSize(const Size size);
uint32_t TextureFormat();
- // SurfaceClient implementation.
- void SetIdNamespace(uint32_t id_namespace) override;
+ void SetIdNamespace(uint32_t id_namespace);
+ // ResourceReturner implementation.
sky 2015/01/31 01:25:28 nit: newline between 48/49.
void ReturnResources(Array<ReturnedResourcePtr> resources) override;
View* view_;
@@ -65,6 +65,7 @@ class BitmapUploader : public SurfaceClient {
uint32_t id_namespace_;
uint32_t local_id_;
base::hash_map<uint32_t, uint32_t> resource_to_texture_id_map_;
+ mojo::Binding<mojo::ResourceReturner> returner_binding_;
DISALLOW_COPY_AND_ASSIGN(BitmapUploader);
};
« no previous file with comments | « no previous file | examples/bitmap_uploader/bitmap_uploader.cc » ('j') | examples/ganesh_app/texture_uploader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698