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

Issue 10223009: ppapi Graphics2d should invalidate all changes without clipping to visible area. (Closed)

Created:
8 years, 8 months ago by shawnsingh
Modified:
8 years, 7 months ago
Reviewers:
brettw, Wez
CC:
chromium-reviews, darin-cc_chromium.org, Wez, nduca
Visibility:
Public.

Description

ppapi Graphics2d should invalidate all changes without clipping to visible area. Currently the flush operation assumes that WebKit will request the ppapi plugin to repaint any newly exposed regions, and so it only invalidates the visible portion of changes. However, for accelerated compositing, this behavior is not correct. This patch rearranges the logic to work for both accelerated and non-accelerated compositing. BUG=122860 TEST=tested manually, created crbug.com/125763 for making a unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134755

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed subtle logic error #

Total comments: 1

Patch Set 3 : Fixed style issue, but still did not fit in one line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -12 lines) Patch
M webkit/plugins/ppapi/ppb_graphics_2d_impl.cc View 1 2 1 chunk +17 lines, -12 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
shawnsingh
8 years, 8 months ago (2012-04-25 19:34:36 UTC) #1
Wez
http://codereview.chromium.org/10223009/diff/1/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc File webkit/plugins/ppapi/ppb_graphics_2d_impl.cc (right): http://codereview.chromium.org/10223009/diff/1/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc#newcode365 webkit/plugins/ppapi/ppb_graphics_2d_impl.cc:365: // Notify the plugin of the entire change (op_rect), ...
8 years, 8 months ago (2012-04-26 21:13:29 UTC) #2
shawnsingh
http://codereview.chromium.org/10223009/diff/1/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc File webkit/plugins/ppapi/ppb_graphics_2d_impl.cc (right): http://codereview.chromium.org/10223009/diff/1/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc#newcode365 webkit/plugins/ppapi/ppb_graphics_2d_impl.cc:365: // Notify the plugin of the entire change (op_rect), ...
8 years, 8 months ago (2012-04-26 22:35:50 UTC) #3
shawnsingh
Wez, here's the fixed patch - if this one is good to go, would you ...
8 years, 7 months ago (2012-05-01 17:21:21 UTC) #4
brettw
lgtm https://chromiumcodereview.appspot.com/10223009/diff/5002/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc File webkit/plugins/ppapi/ppb_graphics_2d_impl.cc (right): https://chromiumcodereview.appspot.com/10223009/diff/5002/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc#newcode357 webkit/plugins/ppapi/ppb_graphics_2d_impl.cc:357: PP_ToGfxRect(bound_instance_->view_data().clip_rect). Indent 4 spaces (maybe "Intersect" will fit ...
8 years, 7 months ago (2012-05-01 17:54:18 UTC) #5
shawnsingh
Thanks for the review!
8 years, 7 months ago (2012-05-01 18:05:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/10223009/9002
8 years, 7 months ago (2012-05-01 18:07:46 UTC) #7
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 19:58:02 UTC) #8
Change committed as 134755

Powered by Google App Engine
This is Rietveld 408576698