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

Issue 1001643004: Remove android webview rendering cruft (Closed)

Created:
5 years, 9 months ago by boliu
Modified:
5 years, 9 months ago
Reviewers:
hush (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org, sunnyps
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove android webview rendering cruft Remove pipelining and blocking the pipeline in different stages. The underlying issue it was trying to workaround is fixed in Android, and it involves a lot of complexity and was a source of bugs. Also remove special handling when viewport is empty, as this is handled correctly now. Add back the IsEmpty corner case workaround by passing some frame metadata with ChildFrame. BUG= Committed: https://crrev.com/b887d327fde64c810e34ef78e6bf4006adee441b Cr-Commit-Position: refs/heads/master@{#321250}

Patch Set 1 #

Total comments: 6

Patch Set 2 : child frame #

Patch Set 3 : fix child_frame #

Patch Set 4 : review #

Total comments: 4

Patch Set 5 : include IsEmpty corner case check #

Patch Set 6 : remove unnecessary change #

Total comments: 1

Patch Set 7 : rename var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -215 lines) Patch
M android_webview/android_webview.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/browser_view_renderer.h View 1 2 5 chunks +6 lines, -15 lines 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 2 3 4 5 6 14 chunks +38 lines, -73 lines 0 comments Download
A android_webview/browser/child_frame.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A android_webview/browser/child_frame.cc View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M android_webview/browser/hardware_renderer.h View 1 5 chunks +3 lines, -7 lines 0 comments Download
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 5 6 6 chunks +18 lines, -33 lines 0 comments Download
M android_webview/browser/parent_compositor_draw_constraints.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M android_webview/browser/parent_compositor_draw_constraints.cc View 1 2 3 4 5 6 2 chunks +18 lines, -5 lines 0 comments Download
M android_webview/browser/shared_renderer_state.h View 1 2 5 chunks +5 lines, -18 lines 0 comments Download
M android_webview/browser/shared_renderer_state.cc View 1 2 3 4 5 6 4 chunks +16 lines, -63 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
boliu
Uploading for closer inspection. I just mostly blindly tried to apply https://codereview.chromium.org/914103004/, and surprisingly compiled ...
5 years, 9 months ago (2015-03-12 00:38:41 UTC) #2
hush (inactive)
https://codereview.chromium.org/1001643004/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1001643004/diff/1/android_webview/browser/browser_view_renderer.cc#newcode261 android_webview/browser/browser_view_renderer.cc:261: ReturnUnusedResource(shared_renderer_state_.PassUncommittedFrameOnUI()); so this is the case where the kModeDraw ...
5 years, 9 months ago (2015-03-13 18:45:17 UTC) #3
boliu
Ok, so as discussed, instead of bringing back SetForceInvalidateOnNextDrawGLOnUI, I'm doing a different fix for ...
5 years, 9 months ago (2015-03-18 02:02:23 UTC) #4
hush (inactive)
https://codereview.chromium.org/1001643004/diff/60001/android_webview/browser/parent_compositor_draw_constraints.cc File android_webview/browser/parent_compositor_draw_constraints.cc (right): https://codereview.chromium.org/1001643004/diff/60001/android_webview/browser/parent_compositor_draw_constraints.cc#newcode22 android_webview/browser/parent_compositor_draw_constraints.cc:22: bool ParentCompositorDrawConstraints::NeedUpdate( I'm kind of confused by the logic ...
5 years, 9 months ago (2015-03-18 22:29:27 UTC) #5
boliu
https://codereview.chromium.org/1001643004/diff/60001/android_webview/browser/parent_compositor_draw_constraints.cc File android_webview/browser/parent_compositor_draw_constraints.cc (right): https://codereview.chromium.org/1001643004/diff/60001/android_webview/browser/parent_compositor_draw_constraints.cc#newcode22 android_webview/browser/parent_compositor_draw_constraints.cc:22: bool ParentCompositorDrawConstraints::NeedUpdate( On 2015/03/18 22:29:27, hush wrote: > I'm ...
5 years, 9 months ago (2015-03-18 22:34:08 UTC) #6
boliu
Ok, IsEmpty check added back..
5 years, 9 months ago (2015-03-18 23:32:52 UTC) #7
boliu
Argg, PS5 contains some unrelated changes.. one sec
5 years, 9 months ago (2015-03-18 23:33:52 UTC) #8
boliu
Ok, now diff of PS6 vs PS4 makes sense now.
5 years, 9 months ago (2015-03-18 23:36:38 UTC) #9
hush (inactive)
lgtm with minor comments https://codereview.chromium.org/1001643004/diff/100001/android_webview/browser/child_frame.h File android_webview/browser/child_frame.h (right): https://codereview.chromium.org/1001643004/diff/100001/android_webview/browser/child_frame.h#newcode29 android_webview/browser/child_frame.h:29: const gfx::Rect viewport_for_tile_priority; can you ...
5 years, 9 months ago (2015-03-18 23:55:09 UTC) #10
boliu
renamed the var and clang-formatted the patch
5 years, 9 months ago (2015-03-18 23:59:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1001643004/120001
5 years, 9 months ago (2015-03-19 00:02:23 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-19 00:29:38 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 00:33:31 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b887d327fde64c810e34ef78e6bf4006adee441b
Cr-Commit-Position: refs/heads/master@{#321250}

Powered by Google App Engine
This is Rietveld 408576698