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

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, 1 month 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
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);

Powered by Google App Engine
This is Rietveld 408576698