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

Unified Diff: cc/output/direct_renderer.h

Issue 2776923003: cc: Partial draw without partial swap support. (Closed)
Patch Set: avoid BufferQueue::RecreateBuffer changes Created 3 years, 8 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 | « android_webview/browser/parent_output_surface.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.h
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index 864c1863b29db381bddfd83ded8ad054f23af6d1..70ae23f0a0a1e01606b1a7de2238f6907601d42a 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -182,10 +182,13 @@ class CC_EXPORT DirectRenderer {
// This can be replaced by test implementations.
std::unique_ptr<OverlayProcessor> overlay_processor_;
+ // Whether it's valid to draw with the current damage rect. Trivially
+ // true when using partial swap.
+ bool allow_partial_draw_ = false;
// Whether it's valid to SwapBuffers with an empty rect. Trivially true when
// using partial swap.
bool allow_empty_swap_ = false;
- // Whether partial swap can be used.
+ // Whether partial swap is used.
bool use_partial_swap_ = false;
// Whether overdraw feedback is enabled and can be used.
bool overdraw_feedback_ = false;
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698