Chromium Code Reviews| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 | 77 |
| 78 // SetNeedsBeginFrame sets observing_begin_frames_ and add/remove | 78 // SetNeedsBeginFrame sets observing_begin_frames_ and add/remove |
| 79 // FrameGenerator as an observer to/from begin_frame_source_ accordingly. | 79 // FrameGenerator as an observer to/from begin_frame_source_ accordingly. |
| 80 void SetNeedsBeginFrame(bool needs_begin_frame); | 80 void SetNeedsBeginFrame(bool needs_begin_frame); |
| 81 | 81 |
| 82 ServerWindow* const root_window_; | 82 ServerWindow* const root_window_; |
| 83 float device_scale_factor_ = 1.f; | 83 float device_scale_factor_ = 1.f; |
| 84 | 84 |
| 85 std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink_; | 85 std::unique_ptr<cc::CompositorFrameSink> compositor_frame_sink_; |
| 86 cc::BeginFrameArgs last_begin_frame_args_; | 86 cc::BeginFrameArgs last_begin_frame_args_; |
| 87 cc::BeginFrameAck current_begin_frame_ack_; | |
|
msw
2017/03/21 17:38:57
what's the difference between last and current?
Eric Seckler
2017/03/22 09:16:50
This is args vs. ack. The ack is set and used (in
| |
| 87 cc::BeginFrameSource* begin_frame_source_ = nullptr; | 88 cc::BeginFrameSource* begin_frame_source_ = nullptr; |
| 88 bool observing_begin_frames_ = false; | 89 bool observing_begin_frames_ = false; |
| 89 bool high_contrast_mode_enabled_ = false; | 90 bool high_contrast_mode_enabled_ = false; |
| 90 | 91 |
| 91 cc::SurfaceInfo window_manager_surface_info_; | 92 cc::SurfaceInfo window_manager_surface_info_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); | 94 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace ws | 97 } // namespace ws |
| 97 | 98 |
| 98 } // namespace ui | 99 } // namespace ui |
| 99 | 100 |
| 100 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ | 101 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ |
| OLD | NEW |