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 47c0fccfe6cb06198183de4377c305c91e2c0e9c..289488514a60c319125b3e2faf5d0f2e263d5f5c 100644 |
--- a/content/renderer/pepper/pepper_compositor_host.cc |
+++ b/content/renderer/pepper/pepper_compositor_host.cc |
@@ -10,6 +10,7 @@ |
#include "cc/layers/solid_color_layer.h" |
#include "cc/layers/texture_layer.h" |
#include "cc/resources/texture_mailbox.h" |
+#include "cc/trees/layer_tree_host.h" |
#include "content/public/renderer/renderer_ppapi_host.h" |
#include "content/renderer/pepper/gfx_conversion.h" |
#include "content/renderer/pepper/host_globals.h" |
@@ -366,6 +367,12 @@ int32_t PepperCompositorHost::OnHostMsgCommitLayers( |
layers_.push_back(LayerData(cc_layer, *pp_layer)); |
} |
+ // We need force to commit for each CommitLayers(), so the |
+ // ViewInitiatedPaint() will be always called, even if all layers are not |
+ // changed from previous CommitLayers() call. |
+ if (layer_->layer_tree_host()) |
bbudge
2014/06/18 15:58:24
The comment is hard to understand. Is this what yo
Peng
2014/06/18 16:05:43
Yes. Thanks you. Done
|
+ layer_->layer_tree_host()->SetNeedsCommit(); |
+ |
return PP_OK_COMPLETIONPENDING; |
} |