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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 375303002: cc: Refactor ResourceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 de1e8ffcacd26e2befe65d392552ba699e0a7b75..3731d244179e6d01fbb0b4041d229929eef57cb4 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1353,7 +1353,7 @@ void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) {
// aggressively flush here to make sure those DeleteTextures make it to the
// GPU process to free up the memory.
if (resource_provider_ && !visible_)
- resource_provider_->ShallowFlushIfSupported();
+ resource_provider_->GetResourceHelper()->ShallowFlushIfSupported();
danakj 2014/07/09 16:01:33 can we just call output_surface_->...->ShallowFlus
sohanjg 2014/07/10 15:11:06 Done.
}
void LayerTreeHostImpl::OnCanDrawStateChangedForTree() {

Powered by Google App Engine
This is Rietveld 408576698