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

Unified Diff: content/renderer/pepper/pepper_graphics_2d_host.cc

Issue 2444973002: Specify the rect invalidated by SetLayerTransform. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698