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

Unified Diff: cc/output/output_surface_frame.h

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: danakj nits Created 3 years, 10 months 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 | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/overlay_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface_frame.h
diff --git a/cc/output/output_surface_frame.h b/cc/output/output_surface_frame.h
index 331496fe06ebfb7b385e259098125fce7cf49943..3133e8e260d0bbffdc781a4951cd773ecbac52d3 100644
--- a/cc/output/output_surface_frame.h
+++ b/cc/output/output_surface_frame.h
@@ -27,8 +27,12 @@ class CC_EXPORT OutputSurfaceFrame {
OutputSurfaceFrame& operator=(OutputSurfaceFrame&& other);
gfx::Size size;
- // Optional rect for partial or empty swap; if not provided, use regular swap.
+ // Providing both |sub_buffer_rect| and |content_bounds| is not supported;
+ // if neither is present, regular swap is used.
+ // Optional rect for partial or empty swap.
base::Optional<gfx::Rect> sub_buffer_rect;
+ // Optional content area for SwapWithBounds. Rectangles may overlap.
+ std::vector<gfx::Rect> content_bounds;
std::vector<ui::LatencyInfo> latency_info;
private:
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/overlay_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698