OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef MOJO_SERVICES_GFX_IMAGES_INTERFACES_IMAGE_PIPE_CONSUMER_ENDPOINT_H_ | 4 #ifndef MOJO_SERVICES_GFX_IMAGES_INTERFACES_IMAGE_PIPE_CONSUMER_ENDPOINT_H_ |
5 #define MOJO_SERVICES_GFX_IMAGES_INTERFACES_IMAGE_PIPE_CONSUMER_ENDPOINT_H_ | 5 #define MOJO_SERVICES_GFX_IMAGES_INTERFACES_IMAGE_PIPE_CONSUMER_ENDPOINT_H_ |
6 | 6 |
7 #include "image_pipe_endpoint.h" | 7 #include "image_pipe_endpoint.h" |
8 #include "mojo/public/c/system/macros.h" | |
9 #include "mojo/public/cpp/bindings/strong_binding.h" | 8 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 9 #include "mojo/public/cpp/system/macros.h" |
10 #include "mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h" | 10 #include "mojo/services/gfx/images/cpp/image_pipe_consumer_delegate.h" |
11 #include "mojo/services/gfx/images/interfaces/image_pipe.mojom.h" | 11 #include "mojo/services/gfx/images/interfaces/image_pipe.mojom.h" |
12 | 12 |
13 namespace image_pipe { | 13 namespace image_pipe { |
14 | 14 |
15 // |ImagePipeConsumerEndpoint| is a state tracking wrapper for the consumer end | 15 // |ImagePipeConsumerEndpoint| is a state tracking wrapper for the consumer end |
16 // of an |ImagePipe| that enforces the constraints documented in the mojom | 16 // of an |ImagePipe| that enforces the constraints documented in the mojom |
17 // interface. Using |ImagePipeConsumerEndpoint| is not required to use | 17 // interface. Using |ImagePipeConsumerEndpoint| is not required to use |
18 // |ImagePipe|, but it may help you use it correctly | 18 // |ImagePipe|, but it may help you use it correctly |
19 class ImagePipeConsumerEndpoint : private mojo::gfx::ImagePipe { | 19 class ImagePipeConsumerEndpoint : private mojo::gfx::ImagePipe { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 ImagePipeConsumerDelegate* delegate_; | 51 ImagePipeConsumerDelegate* delegate_; |
52 | 52 |
53 mojo::Binding<mojo::gfx::ImagePipe> image_pipe_binding_; | 53 mojo::Binding<mojo::gfx::ImagePipe> image_pipe_binding_; |
54 | 54 |
55 MOJO_DISALLOW_COPY_AND_ASSIGN(ImagePipeConsumerEndpoint); | 55 MOJO_DISALLOW_COPY_AND_ASSIGN(ImagePipeConsumerEndpoint); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace image_pipe | 58 } // namespace image_pipe |
59 | 59 |
60 #endif // MOJO_SERVICES_GFX_IMAGES_INTERFACES_IMAGE_PIPE_CONSUMER_ENDPOINT_H_ | 60 #endif // MOJO_SERVICES_GFX_IMAGES_INTERFACES_IMAGE_PIPE_CONSUMER_ENDPOINT_H_ |
OLD | NEW |