| 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..73abbf17bf99a2a2c06130014325e32c0d9fb211
|
| --- /dev/null
|
| +++ b/mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2015 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_
|
|
|