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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 843633003: Enable partial texture upload support for browser compositor with Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index fe85134336c21be3891e6fa31f9b5cb0285e7c4f..82328c94c7ca44c6f0f053d7adf399ce3eabd4b5 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -291,6 +291,12 @@ void LayerTreeHostImpl::BeginMainFrameAborted(CommitEarlyOutReason reason) {
void LayerTreeHostImpl::BeginCommit() {
TRACE_EVENT0("cc", "LayerTreeHostImpl::BeginCommit");
+ // Ensure all textures are returned so partial texture updates can happen
+ // during the commit. Impl-side-painting doesn't upload during commits, so
+ // is unaffected.
+ if (!settings_.impl_side_painting)
+ output_surface_->ForceReclaimResources();
+
if (UsePendingTreeForSync())
CreatePendingTree();
}

Powered by Google App Engine
This is Rietveld 408576698