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 CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_FRAME_RECEIVER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_FRAME_RECEIVER_IMPL_H_ |
| 7 |
| 8 #include "mojo/public/cpp/bindings/interface_request.h" |
| 9 #include "mojo/public/cpp/bindings/string.h" |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 11 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class OffscreenCanvasFrameReceiverImpl |
| 16 : public blink::mojom::OffscreenCanvasFrameReceiver { |
| 17 public: |
| 18 static void Create(mojo::InterfaceRequest< |
| 19 blink::mojom::OffscreenCanvasFrameReceiver> request); |
| 20 |
| 21 void SubmitCompositorFrame(const cc::SurfaceId& surface_id, |
| 22 cc::CompositorFrame frame) override; |
| 23 |
| 24 private: |
| 25 ~OffscreenCanvasFrameReceiverImpl() override; |
| 26 explicit OffscreenCanvasFrameReceiverImpl( |
| 27 mojo::InterfaceRequest<blink::mojom::OffscreenCanvasFrameReceiver> |
| 28 request); |
| 29 |
| 30 mojo::StrongBinding<blink::mojom::OffscreenCanvasFrameReceiver> binding_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasFrameReceiverImpl); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_FRAME_RECEIVER_IMPL_H_ |
OLD | NEW |