| 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_SURFACE_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_SURFACE_H_ |
| 6 #define SERVICES_UI_WS_SERVER_WINDOW_SURFACE_H_ | 6 #define SERVICES_UI_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 15 matching lines...) Expand all Loading... |
| 26 namespace ws { | 26 namespace ws { |
| 27 | 27 |
| 28 class ServerWindow; | 28 class ServerWindow; |
| 29 class ServerWindowSurfaceManager; | 29 class ServerWindowSurfaceManager; |
| 30 | 30 |
| 31 // Server side representation of a WindowSurface. | 31 // Server side representation of a WindowSurface. |
| 32 class ServerWindowSurface : public mojom::Surface, | 32 class ServerWindowSurface : public mojom::Surface, |
| 33 public cc::SurfaceFactoryClient { | 33 public cc::SurfaceFactoryClient { |
| 34 public: | 34 public: |
| 35 ServerWindowSurface(ServerWindowSurfaceManager* manager, | 35 ServerWindowSurface(ServerWindowSurfaceManager* manager, |
| 36 const cc::FrameSinkId& frame_sink_id, |
| 36 mojo::InterfaceRequest<mojom::Surface> request, | 37 mojo::InterfaceRequest<mojom::Surface> request, |
| 37 mojom::SurfaceClientPtr client); | 38 mojom::SurfaceClientPtr client); |
| 38 | 39 |
| 39 ~ServerWindowSurface() override; | 40 ~ServerWindowSurface() override; |
| 40 | 41 |
| 41 const gfx::Size& last_submitted_frame_size() const { | 42 const gfx::Size& last_submitted_frame_size() const { |
| 42 return last_submitted_frame_size_; | 43 return last_submitted_frame_size_; |
| 43 } | 44 } |
| 44 | 45 |
| 45 bool may_contain_video() const { return may_contain_video_; } | 46 bool may_contain_video() const { return may_contain_video_; } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool may_contain_video_ = false; | 81 bool may_contain_video_ = false; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); | 83 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace ws | 86 } // namespace ws |
| 86 | 87 |
| 87 } // namespace ui | 88 } // namespace ui |
| 88 | 89 |
| 89 #endif // SERVICES_UI_WS_SERVER_WINDOW_SURFACE_H_ | 90 #endif // SERVICES_UI_WS_SERVER_WINDOW_SURFACE_H_ |
| OLD | NEW |