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 scoped_refptr<GpuState> gpu_state_; | 79 scoped_refptr<GpuState> gpu_state_; |
80 scoped_refptr<SurfacesState> surfaces_state_; | 80 scoped_refptr<SurfacesState> surfaces_state_; |
81 | 81 |
82 std::unique_ptr<DisplayCompositor> display_compositor_; | 82 std::unique_ptr<DisplayCompositor> display_compositor_; |
83 | 83 |
84 // The region that needs to be redrawn next time the compositor frame is | 84 // The region that needs to be redrawn next time the compositor frame is |
85 // generated. | 85 // generated. |
86 gfx::Rect dirty_rect_; | 86 gfx::Rect dirty_rect_; |
87 base::Timer draw_timer_; | 87 base::Timer draw_timer_; |
88 bool frame_pending_ = false; | 88 bool frame_pending_ = false; |
| 89 bool may_contain_video_ = false; |
89 | 90 |
90 base::WeakPtrFactory<FrameGenerator> weak_factory_; | 91 base::WeakPtrFactory<FrameGenerator> weak_factory_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); | 93 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace ws | 96 } // namespace ws |
96 | 97 |
97 } // namespace ui | 98 } // namespace ui |
98 | 99 |
99 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ | 100 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ |
OLD | NEW |