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

Issue 11732002: [Android WebView] Update SW rendering to use SkPicture and fix scrolling cases. (Closed)

Created:
7 years, 11 months ago by Leandro Graciá Gil
Modified:
7 years, 11 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Update SW rendering to use SkPicture and fix scrolling cases. The new capturePicture API will now provide SkPicture objects rather than cc::PicturePileImpl. Update the code to reflect that. Also, when rendering into separate layers in HW mode we're applying a translation to undo the Android Framework scrolling and let Chrome's compositor take care of it. This is not applicable to the layer case, however, as we only render ourselves out of our provided sufrace. SW rendering doesn't need scroll correction after using SkPicture directly. Before, cc::PicturePileImpl translated the canvas as part of the content rect rasterization. BUG=161409 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175781

Patch Set 1 #

Patch Set 2 : extend to fix sw rendering scroll. #

Total comments: 1

Patch Set 3 : update to use SkPicture and simplify. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -35 lines) Patch
M android_webview/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/common/renderer_picture_map.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M android_webview/common/renderer_picture_map.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 11 chunks +16 lines, -20 lines 2 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Leandro Graciá Gil
7 years, 11 months ago (2012-12-31 19:30:26 UTC) #1
Leandro Graciá Gil
https://codereview.chromium.org/11732002/diff/5001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/11732002/diff/5001/android_webview/native/aw_contents.cc#newcode456 android_webview/native/aw_contents.cc:456: canvas.translate(scroll_x, scroll_y); As part of the review of https://codereview.chromium.org/11731002/ ...
7 years, 11 months ago (2013-01-04 21:21:24 UTC) #2
Leandro Graciá Gil
Updating to SkPicture and simplifying the code.
7 years, 11 months ago (2013-01-08 18:07:39 UTC) #3
joth
lgtm https://codereview.chromium.org/11732002/diff/13001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/11732002/diff/13001/android_webview/native/aw_contents.cc#newcode312 android_webview/native/aw_contents.cc:312: should we land this bit separately to the ...
7 years, 11 months ago (2013-01-08 20:48:23 UTC) #4
Leandro Graciá Gil
https://codereview.chromium.org/11732002/diff/13001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/11732002/diff/13001/android_webview/native/aw_contents.cc#newcode312 android_webview/native/aw_contents.cc:312: On 2013/01/08 20:48:23, joth wrote: > should we land ...
7 years, 11 months ago (2013-01-08 21:52:44 UTC) #5
joth
On 8 January 2013 13:52, <leandrogracia@chromium.org> wrote: > > https://codereview.chromium.**org/11732002/diff/13001/** > android_webview/native/aw_**contents.cc<https://codereview.chromium.org/11732002/diff/13001/android_webview/native/aw_contents.cc> > File android_webview/native/aw_**contents.cc ...
7 years, 11 months ago (2013-01-08 21:55:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11732002/13001
7 years, 11 months ago (2013-01-09 00:43:33 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-09 03:10:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leandrogracia@chromium.org/11732002/13001
7 years, 11 months ago (2013-01-09 09:45:22 UTC) #9
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 11:48:09 UTC) #10
Message was sent while issue was closed.
Change committed as 175781

Powered by Google App Engine
This is Rietveld 408576698