Index: content/renderer/pepper/pepper_compositor_host.cc |
diff --git a/content/renderer/pepper/pepper_compositor_host.cc b/content/renderer/pepper/pepper_compositor_host.cc |
index c2768361c0e54c59698b2b0f378d6867801e0a8c..4790e0447edc15956158a02a9ace71a0e1027b3c 100644 |
--- a/content/renderer/pepper/pepper_compositor_host.cc |
+++ b/content/renderer/pepper/pepper_compositor_host.cc |
@@ -410,8 +410,8 @@ int32_t PepperCompositorHost::OnHostMsgCommitLayers( |
// We need to force a commit for each CommitLayers() call, even if no layers |
// changed since the last call to CommitLayers(). This is so |
// WiewInitiatedPaint() will always be called. |
- if (layer_->layer_tree_host()) |
- layer_->layer_tree_host()->SetNeedsCommit(); |
+ if (layer_->GetLayerTree()) |
+ layer_->GetLayerTree()->SetNeedsCommit(); |
// If the host is not bound to the instance, return PP_OK immediately. |
if (!bound_instance_) |