| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 | 4 |
| 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
| 6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/ipc/compositor_frame.mojom.h" | 9 #include "cc/ipc/compositor_frame.mojom.h" |
| 10 #include "cc/ipc/display_compositor.mojom.h" | 10 #include "cc/ipc/display_compositor.mojom.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 void CreateRootCompositorFrameSink( | 30 void CreateRootCompositorFrameSink( |
| 31 gfx::AcceleratedWidget widget, | 31 gfx::AcceleratedWidget widget, |
| 32 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request, | 32 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request, |
| 33 cc::mojom::MojoCompositorFrameSinkClientPtr client, | 33 cc::mojom::MojoCompositorFrameSinkClientPtr client, |
| 34 cc::mojom::DisplayPrivateAssociatedRequest display_request); | 34 cc::mojom::DisplayPrivateAssociatedRequest display_request); |
| 35 | 35 |
| 36 void CreateCompositorFrameSink( | 36 void CreateCompositorFrameSink( |
| 37 cc::mojom::MojoCompositorFrameSinkRequest request, | 37 cc::mojom::MojoCompositorFrameSinkRequest request, |
| 38 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 38 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 39 | 39 |
| 40 // Claims this FrameSinkId will embed |surface_id| so it should own the |
| 41 // temporary reference to |surface_id|. |
| 42 void ClaimTemporaryReference(const cc::SurfaceId& surface_id); |
| 43 |
| 40 private: | 44 private: |
| 41 ServerWindow* const window_; | 45 ServerWindow* const window_; |
| 42 cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_; | 46 cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_; |
| 43 cc::mojom::MojoCompositorFrameSinkPrivateRequest | 47 cc::mojom::MojoCompositorFrameSinkPrivateRequest |
| 44 pending_compositor_frame_sink_request_; | 48 pending_compositor_frame_sink_request_; |
| 45 | 49 |
| 46 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); | 50 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); |
| 47 }; | 51 }; |
| 48 | 52 |
| 49 } // namespace ws | 53 } // namespace ws |
| 50 } // namespace ui | 54 } // namespace ui |
| 51 | 55 |
| 52 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ | 56 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ |
| OLD | NEW |