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

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..66c0bb0534bc239259d5a29697e0388a138859e2 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -290,6 +290,8 @@ void LayerTreeHostImpl::BeginMainFrameAborted(CommitEarlyOutReason reason) {
void LayerTreeHostImpl::BeginCommit() {
TRACE_EVENT0("cc", "LayerTreeHostImpl::BeginCommit");
+ DCHECK(output_surface_);
danakj 2015/01/08 21:04:34 nit: no need to dcheck, we'll crash if it's null o
+ output_surface_->ForceReclaimResources();
if (UsePendingTreeForSync())
CreatePendingTree();

Powered by Google App Engine
This is Rietveld 408576698