| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
| 6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 // Where possible, draws are scissored to a damage region calculated from | 237 // Where possible, draws are scissored to a damage region calculated from |
| 238 // changes to layer properties. This bypasses that and indicates that | 238 // changes to layer properties. This bypasses that and indicates that |
| 239 // the whole frame needs to be drawn. | 239 // the whole frame needs to be drawn. |
| 240 void ScheduleFullRedraw(); | 240 void ScheduleFullRedraw(); |
| 241 | 241 |
| 242 // Schedule redraw and append damage_rect to the damage region calculated | 242 // Schedule redraw and append damage_rect to the damage region calculated |
| 243 // from changes to layer properties. | 243 // from changes to layer properties. |
| 244 void ScheduleRedrawRect(const gfx::Rect& damage_rect); | 244 void ScheduleRedrawRect(const gfx::Rect& damage_rect); |
| 245 | 245 |
| 246 // Finishes all outstanding rendering and disables swapping on this surface. | |
| 247 void FinishAllRendering(); | |
| 248 | |
| 249 // Finishes all outstanding rendering and disables swapping on this surface | 246 // Finishes all outstanding rendering and disables swapping on this surface |
| 250 // until it is resized. | 247 // until it is resized. |
| 251 void DisableSwapUntilResize(); | 248 void DisableSwapUntilResize(); |
| 252 | 249 |
| 253 void SetLatencyInfo(const LatencyInfo& latency_info); | 250 void SetLatencyInfo(const LatencyInfo& latency_info); |
| 254 | 251 |
| 255 // Sets the compositor's device scale factor and size. | 252 // Sets the compositor's device scale factor and size. |
| 256 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel); | 253 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel); |
| 257 | 254 |
| 258 // Set the output color profile into which this compositor should render. | 255 // Set the output color profile into which this compositor should render. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 scoped_refptr<cc::AnimationTimeline> animation_timeline_; | 418 scoped_refptr<cc::AnimationTimeline> animation_timeline_; |
| 422 | 419 |
| 423 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 420 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 424 | 421 |
| 425 DISALLOW_COPY_AND_ASSIGN(Compositor); | 422 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 426 }; | 423 }; |
| 427 | 424 |
| 428 } // namespace ui | 425 } // namespace ui |
| 429 | 426 |
| 430 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 427 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |