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

Unified Diff: mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h

Issue 1595773002: Added ImagePipe (Closed) Base URL: https://github.com/domokit/mojo.git@submit-2
Patch Set: rebased Created 4 years, 9 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
Index: mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h
diff --git a/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h b/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..b0c6d0c74e5dca34cd40578be221a4a93ccc6bde
--- /dev/null
+++ b/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SERVICES_GFX_IMAGES_CPP_IMAGE_PIPE_CONSUMER_DELEGATE_H_
+#define MOJO_SERVICES_GFX_IMAGES_CPP_IMAGE_PIPE_CONSUMER_DELEGATE_H_
+
+#include "mojo/services/gfx/images/interfaces/image.mojom.h"
+
+namespace image_pipe {
+
+// Pure virtual class for platform dependent handling of
+// asynchronous calls on the consumer end of the image pipe.
+class ImagePipeConsumerDelegate {
+ public:
+ virtual ~ImagePipeConsumerDelegate() {}
+
+ virtual void AddImage(mojo::gfx::ImagePtr image, uint32_t id) = 0;
+ virtual void RemoveImage(uint32_t id) = 0;
+ virtual void PresentImage(uint32_t id) = 0;
+ virtual void HandleEndpointClosed() = 0;
+};
+}
+
+#endif // MOJO_SERVICES_GFX_IMAGES_CPP_IMAGE_PIPE_CONSUMER_DELEGATE_H_
« no previous file with comments | « mojo/services/gfx/images/cpp/image_pipe_apptest.cc ('k') | mojo/services/gfx/images/cpp/image_pipe_consumer_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698