| 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" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // SetNeedsBeginFrame sets observing_begin_frames_ and add/remove | 79 // SetNeedsBeginFrame sets observing_begin_frames_ and add/remove |
| 80 // FrameGenerator as an observer to/from begin_frame_source_ accordingly. | 80 // FrameGenerator as an observer to/from begin_frame_source_ accordingly. |
| 81 void SetNeedsBeginFrame(bool needs_begin_frame); | 81 void SetNeedsBeginFrame(bool needs_begin_frame); |
| 82 | 82 |
| 83 FrameGeneratorDelegate* delegate_; | 83 FrameGeneratorDelegate* delegate_; |
| 84 ServerWindow* const root_window_; | 84 ServerWindow* const root_window_; |
| 85 float device_scale_factor_ = 1.f; | 85 float device_scale_factor_ = 1.f; |
| 86 | 86 |
| 87 std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink_; | 87 std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink_; |
| 88 cc::BeginFrameArgs last_begin_frame_args_; | 88 cc::BeginFrameArgs last_begin_frame_args_; |
| 89 cc::BeginFrameAck current_begin_frame_ack_; |
| 89 cc::BeginFrameSource* begin_frame_source_ = nullptr; | 90 cc::BeginFrameSource* begin_frame_source_ = nullptr; |
| 90 bool observing_begin_frames_ = false; | 91 bool observing_begin_frames_ = false; |
| 91 | 92 |
| 92 cc::SurfaceInfo window_manager_surface_info_; | 93 cc::SurfaceInfo window_manager_surface_info_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); | 95 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace ws | 98 } // namespace ws |
| 98 | 99 |
| 99 } // namespace ui | 100 } // namespace ui |
| 100 | 101 |
| 101 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ | 102 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| OLD | NEW |