OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_SERVICES_GFX_IMAGES_CPP_IMAGE_PIPE_CONSUMER_DELEGATE_H_ |
| 6 #define MOJO_SERVICES_GFX_IMAGES_CPP_IMAGE_PIPE_CONSUMER_DELEGATE_H_ |
| 7 |
| 8 #include "mojo/services/gfx/images/interfaces/image.mojom.h" |
| 9 |
| 10 namespace image_pipe { |
| 11 |
| 12 // Pure virtual class for platform dependent handling of |
| 13 // asynchronous calls on the consumer end of the image pipe. |
| 14 class ImagePipeConsumerDelegate { |
| 15 public: |
| 16 virtual ~ImagePipeConsumerDelegate() {} |
| 17 |
| 18 virtual void AddImage(mojo::gfx::ImagePtr image, uint32_t id) = 0; |
| 19 virtual void RemoveImage(uint32_t id) = 0; |
| 20 virtual void PresentImage(uint32_t id) = 0; |
| 21 virtual void HandleEndpointClosed() = 0; |
| 22 }; |
| 23 } |
| 24 |
| 25 #endif // MOJO_SERVICES_GFX_IMAGES_CPP_IMAGE_PIPE_CONSUMER_DELEGATE_H_ |
OLD | NEW |