| 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 | 4 |
| 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_ | 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ | 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 12 #include "cc/ipc/display_compositor.mojom.h" | 12 #include "cc/ipc/display_compositor.mojom.h" |
| 13 #include "cc/surfaces/frame_sink_id.h" | 13 #include "cc/surfaces/frame_sink_id.h" |
| 14 #include "cc/surfaces/local_surface_id_allocator.h" |
| 14 #include "cc/surfaces/surface_id.h" | 15 #include "cc/surfaces/surface_id.h" |
| 15 #include "cc/surfaces/surface_id_allocator.h" | |
| 16 #include "cc/surfaces/surface_reference.h" | 16 #include "cc/surfaces/surface_reference.h" |
| 17 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" | 17 #include "services/ui/public/interfaces/window_tree_constants.mojom.h" |
| 18 #include "services/ui/ws/ids.h" | 18 #include "services/ui/ws/ids.h" |
| 19 #include "services/ui/ws/server_window_delegate.h" | 19 #include "services/ui/ws/server_window_delegate.h" |
| 20 #include "services/ui/ws/server_window_tracker.h" | 20 #include "services/ui/ws/server_window_tracker.h" |
| 21 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
| 22 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 23 | 23 |
| 24 namespace cc { | 24 namespace cc { |
| 25 class RenderPass; | 25 class RenderPass; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // DrawWindow creates SurfaceDrawQuad for the window manager and appends it to | 68 // DrawWindow creates SurfaceDrawQuad for the window manager and appends it to |
| 69 // the provided cc::RenderPass. | 69 // the provided cc::RenderPass. |
| 70 void DrawWindow(cc::RenderPass* pass); | 70 void DrawWindow(cc::RenderPass* pass); |
| 71 | 71 |
| 72 FrameGeneratorDelegate* delegate_; | 72 FrameGeneratorDelegate* delegate_; |
| 73 ServerWindow* const root_window_; | 73 ServerWindow* const root_window_; |
| 74 float device_scale_factor_ = 1.f; | 74 float device_scale_factor_ = 1.f; |
| 75 | 75 |
| 76 gfx::Size last_submitted_frame_size_; | 76 gfx::Size last_submitted_frame_size_; |
| 77 cc::LocalSurfaceId local_surface_id_; | 77 cc::LocalSurfaceId local_surface_id_; |
| 78 cc::SurfaceIdAllocator id_allocator_; | 78 cc::LocalSurfaceIdAllocator id_allocator_; |
| 79 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink_; | 79 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink_; |
| 80 cc::mojom::DisplayPrivateAssociatedPtr display_private_; | 80 cc::mojom::DisplayPrivateAssociatedPtr display_private_; |
| 81 | 81 |
| 82 cc::SurfaceInfo window_manager_surface_info_; | 82 cc::SurfaceInfo window_manager_surface_info_; |
| 83 | 83 |
| 84 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_; | 84 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); | 86 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace ws | 89 } // namespace ws |
| 90 | 90 |
| 91 } // namespace ui | 91 } // namespace ui |
| 92 | 92 |
| 93 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ | 93 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| OLD | NEW |