| 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 COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ | 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ |
| 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ | 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // Takes a mojom::CompositorFrame |input|, and converts it into a | 67 // Takes a mojom::CompositorFrame |input|, and converts it into a |
| 68 // cc::CompositorFrame. Along the way, this conversion ensures that a | 68 // cc::CompositorFrame. Along the way, this conversion ensures that a |
| 69 // CompositorFrame of this window can only refer to windows within its | 69 // CompositorFrame of this window can only refer to windows within its |
| 70 // subtree. Windows referenced in |input| are stored in | 70 // subtree. Windows referenced in |input| are stored in |
| 71 // |referenced_window_ids_|. | 71 // |referenced_window_ids_|. |
| 72 std::unique_ptr<cc::CompositorFrame> ConvertCompositorFrame( | 72 std::unique_ptr<cc::CompositorFrame> ConvertCompositorFrame( |
| 73 const mojom::CompositorFramePtr& input); | 73 const mojom::CompositorFramePtr& input); |
| 74 | 74 |
| 75 // Overriden from CustomSurfaceConverter: | 75 // Overriden from CustomSurfaceConverter: |
| 76 bool ConvertSurfaceDrawQuad(const mojom::QuadPtr& input, | 76 bool ConvertSurfaceDrawQuad(const cc::mojom::DrawQuadPtr& input, |
| 77 const cc::CompositorFrameMetadata& metadata, | 77 const cc::CompositorFrameMetadata& metadata, |
| 78 cc::SharedQuadState* sqs, | 78 cc::SharedQuadState* sqs, |
| 79 cc::RenderPass* render_pass) override; | 79 cc::RenderPass* render_pass) override; |
| 80 | 80 |
| 81 // SurfaceFactoryClient implementation. | 81 // SurfaceFactoryClient implementation. |
| 82 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 82 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 83 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 83 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 84 | 84 |
| 85 ServerWindowSurfaceManager* manager_; // Owns this. | 85 ServerWindowSurfaceManager* manager_; // Owns this. |
| 86 | 86 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 100 bool registered_surface_factory_client_; | 100 bool registered_surface_factory_client_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); | 102 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace ws | 105 } // namespace ws |
| 106 | 106 |
| 107 } // namespace mus | 107 } // namespace mus |
| 108 | 108 |
| 109 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ | 109 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ |
| OLD | NEW |