Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: ui/compositor/compositor.h

Issue 767443002: Ensure Surface size always matches window size on swap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/compositor/surface_display_output_surface.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index e45f215869b8c01f2783420d4926b29dc17208e7..57e4a8e28067ecb3804b06a5e30dcd765c73bea9 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,9 @@ 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();
+ // Finishes all outstanding rendering and disables swapping on this surface
+ // until it is resized.
+ void DisableSwapUntilResize();
void SetLatencyInfo(const LatencyInfo& latency_info);
« no previous file with comments | « content/browser/compositor/surface_display_output_surface.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698