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

Unified Diff: cc/output/output_surface.h

Issue 1454323002: Display skips swapping if overlays draw the damage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try skipping the swap at the cc::Display level Created 5 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
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 2176455266b98164d2f9ae0740e90af942a2721e..4985f9538b3c5a0c0f6682c3b53c566284602928 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -68,7 +68,8 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider {
uses_default_gl_framebuffer(true),
flipped_output_surface(false),
can_force_reclaim_resources(false),
- delegated_sync_points_required(true) {}
+ delegated_sync_points_required(true),
+ schedules_overlays_without_swap(false) {}
bool delegated_rendering;
int max_frames_pending;
// This doesn't handle the <webview> case, but once BeginFrame is
@@ -85,6 +86,9 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider {
// True if sync points for resources are needed when swapping delegated
// frames.
bool delegated_sync_points_required;
+ // Whether the surface will display overlay planes as soon as they're
+ // scheduled rather than on the next swap.
+ bool schedules_overlays_without_swap;
};
const Capabilities& capabilities() const {
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698