Chromium Code Reviews| Index: ui/compositor/compositor.h |
| diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h |
| index e45f215869b8c01f2783420d4926b29dc17208e7..bf140a13149ea8c7d6f57ff988b6422201fb7dfa 100644 |
| --- a/ui/compositor/compositor.h |
| +++ b/ui/compositor/compositor.h |
| @@ -105,6 +105,10 @@ class COMPOSITOR_EXPORT ContextFactory { |
| // Creates a Surface ID allocator with a new namespace. |
| virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() = 0; |
| + |
| + // Resize the display corresponding to this compositor to a particular size. |
| + virtual void ResizeDisplay(ui::Compositor* compositor, |
| + const gfx::Size& size) = 0; |
| }; |
| // This class represents a lock on the compositor, that can be used to prevent |
| @@ -183,8 +187,8 @@ class COMPOSITOR_EXPORT Compositor |
| // from changes to layer properties. |
| void ScheduleRedrawRect(const gfx::Rect& damage_rect); |
| - // Finishes all outstanding rendering on the GPU. |
| - void FinishAllRendering(); |
| + // Disable swapping on this surface until it is resized. |
|
piman
2014/12/01 23:42:09
Nit: "Finishes all outstanding rendering and disab
|
| + void DisableSwapUntilResize(); |
| void SetLatencyInfo(const LatencyInfo& latency_info); |