Index: content/renderer/pepper/pepper_graphics_2d_host.cc |
diff --git a/content/renderer/pepper/pepper_graphics_2d_host.cc b/content/renderer/pepper/pepper_graphics_2d_host.cc |
index ea767e63ea906873500714aef57702a534c5dea5..acfc70fad31b3c4f7252579572d63a8950ece83d 100644 |
--- a/content/renderer/pepper/pepper_graphics_2d_host.cc |
+++ b/content/renderer/pepper/pepper_graphics_2d_host.cc |
@@ -610,8 +610,7 @@ int32_t PepperGraphics2DHost::Flush(PP_Resource* old_image_data) { |
gfx::Rect op_rect; |
switch (operation.type) { |
case QueuedOperation::TRANSFORM: |
- ExecuteTransform(operation.scale, operation.translation); |
- no_update_visible = false; |
+ ExecuteTransform(operation.scale, operation.translation, &op_rect); |
break; |
case QueuedOperation::PAINT: |
ExecutePaintImageData(operation.paint_image.get(), |
@@ -703,8 +702,10 @@ int32_t PepperGraphics2DHost::Flush(PP_Resource* old_image_data) { |
} |
void PepperGraphics2DHost::ExecuteTransform(const float& scale, |
- const gfx::PointF& translate) { |
+ const gfx::PointF& translate, |
+ gfx::Rect* invalidated_rect) { |
bound_instance_->SetGraphics2DTransform(scale, translate); |
+ *invalidated_rect = PP_ToGfxRect(bound_instance_->view_data().clip_rect); |
} |
void PepperGraphics2DHost::ExecutePaintImageData(PPB_ImageData_Impl* image, |