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

Issue 944053004: OffscreenPreRaster and its plumbings (Closed)

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

Description

OffscreenPreRaster and its plumbings If OffscreenPreRaster is enabled, the viewport rect for tile priority and the tile memory limit calculation will be based on the size of the webview, instead of the size of visible area of the webview. Design doc here https://docs.google.com/document/d/1xOMjvbEIS3dMzpWXWrsl7qV8QOgGEIZL1QxgnfOXmq4/ BUG=460638 Committed: https://crrev.com/d00f10451d36d173b4d900c9cf3b1d0ff639350e Cr-Commit-Position: refs/heads/master@{#318126}

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : comments #

Total comments: 2

Patch Set 4 : comments #

Total comments: 2

Patch Set 5 : UpdateOffscreenPreRasterLocked #

Patch Set 6 : Fix unit test #

Patch Set 7 : comments #

Patch Set 8 : formatting #

Total comments: 4

Patch Set 9 : comments #

Total comments: 2

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -17 lines) Patch
M android_webview/browser/browser_view_renderer.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 2 5 chunks +20 lines, -16 lines 0 comments Download
M android_webview/browser/test/fake_window.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 1 2 3 3 chunks +42 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/native/aw_settings.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_settings.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/test/test_synchronous_compositor_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 40 (9 generated)
hush (inactive)
PTAL. I will add some tests after things are settled.
5 years, 10 months ago (2015-02-20 22:38:28 UTC) #2
hush (inactive)
On 2015/02/20 22:38:28, hush wrote: > PTAL. > I will add some tests after things ...
5 years, 10 months ago (2015-02-20 22:45:56 UTC) #3
boliu
file a tracking bug? :) https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode221 android_webview/browser/browser_view_renderer.cc:221: viewport_rect_for_tile_priority = viewport; empty ...
5 years, 10 months ago (2015-02-20 23:16:07 UTC) #4
hush (inactive)
https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode221 android_webview/browser/browser_view_renderer.cc:221: viewport_rect_for_tile_priority = viewport; On 2015/02/20 23:16:07, boliu wrote: > ...
5 years, 10 months ago (2015-02-20 23:47:21 UTC) #5
hush (inactive)
https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode329 android_webview/browser/browser_view_renderer.cc:329: offscreen_pre_raster_ = enable; On 2015/02/20 23:47:21, hush wrote: > ...
5 years, 10 months ago (2015-02-20 23:54:46 UTC) #6
hush (inactive)
On 2015/02/20 23:54:46, hush wrote: > https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc > File android_webview/browser/browser_view_renderer.cc (right): > > https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode329 > ...
5 years, 10 months ago (2015-02-20 23:55:51 UTC) #7
boliu
On 2015/02/20 23:55:51, hush wrote: > On second thought, I will just store the value ...
5 years, 10 months ago (2015-02-21 00:03:01 UTC) #8
hush (inactive)
https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/944053004/diff/20001/android_webview/browser/browser_view_renderer.cc#newcode329 android_webview/browser/browser_view_renderer.cc:329: offscreen_pre_raster_ = enable; On 2015/02/20 23:54:46, hush wrote: > ...
5 years, 10 months ago (2015-02-21 00:27:03 UTC) #9
boliu
+mnaganov for maybe glacing over the AwSettings changes later > You need to turn this ...
5 years, 10 months ago (2015-02-21 00:30:27 UTC) #11
hush (inactive)
https://codereview.chromium.org/944053004/diff/60001/android_webview/native/aw_settings.cc File android_webview/native/aw_settings.cc (right): https://codereview.chromium.org/944053004/diff/60001/android_webview/native/aw_settings.cc#newcode133 android_webview/native/aw_settings.cc:133: UpdateRendererPreferencesLocked(env, obj); On 2015/02/21 00:30:27, boliu wrote: > UpdateOffscreenPreRasterLocked ...
5 years, 10 months ago (2015-02-21 00:45:48 UTC) #12
boliu
lgtm Avoid using "you" in the description. Be a bit more formal :p
5 years, 10 months ago (2015-02-21 00:48:42 UTC) #13
hush (inactive)
On 2015/02/21 00:48:42, boliu wrote: > lgtm > > Avoid using "you" in the description. ...
5 years, 10 months ago (2015-02-21 01:00:45 UTC) #14
boliu
On 2015/02/21 01:00:45, hush wrote: > On 2015/02/21 00:48:42, boliu wrote: > > lgtm > ...
5 years, 10 months ago (2015-02-21 01:02:39 UTC) #15
mnaganov (inactive)
lgtm
5 years, 10 months ago (2015-02-23 11:01:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944053004/80001
5 years, 10 months ago (2015-02-24 01:20:12 UTC) #18
hush (inactive)
okay.. landing the CL, without any tests, because we don't know how to write one ...
5 years, 10 months ago (2015-02-24 01:20:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_rel_tests_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_rel_tests_recipe/builds/5024)
5 years, 10 months ago (2015-02-24 03:57:11 UTC) #21
hush (inactive)
On 2015/02/24 03:57:11, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-02-24 19:11:45 UTC) #24
hush (inactive)
Because I removed line 181-189 from browser_view_renderer.cc, BVR will call DemandDrawHw with an empty global ...
5 years, 10 months ago (2015-02-24 21:27:07 UTC) #25
hush (inactive)
Bo: PTAL PS6. Thank you!
5 years, 10 months ago (2015-02-24 21:32:24 UTC) #26
boliu
On 2015/02/24 21:27:07, hush wrote: > Because I removed line 181-189 from browser_view_renderer.cc, BVR will ...
5 years, 10 months ago (2015-02-24 21:47:31 UTC) #27
hush (inactive)
PS7: Fixed FakeWindow::onDrawHardware so that it calls prepareToDraw with top left quarter of the surface ...
5 years, 10 months ago (2015-02-24 22:02:54 UTC) #28
boliu
https://codereview.chromium.org/944053004/diff/140001/android_webview/browser/test/fake_window.cc File android_webview/browser/test/fake_window.cc (right): https://codereview.chromium.org/944053004/diff/140001/android_webview/browser/test/fake_window.cc#newcode123 android_webview/browser/test/fake_window.cc:123: view_->PrepareToDraw(gfx::Vector2d(), gfx::Rect(0, 0, 50, 50)); Use |location_| https://codereview.chromium.org/944053004/diff/140001/content/public/test/test_synchronous_compositor_android.cc File ...
5 years, 10 months ago (2015-02-24 22:06:22 UTC) #29
boliu
On 2015/02/24 22:06:22, boliu wrote: > https://codereview.chromium.org/944053004/diff/140001/android_webview/browser/test/fake_window.cc > File android_webview/browser/test/fake_window.cc (right): > > https://codereview.chromium.org/944053004/diff/140001/android_webview/browser/test/fake_window.cc#newcode123 > ...
5 years, 10 months ago (2015-02-24 22:06:36 UTC) #30
hush (inactive)
https://codereview.chromium.org/944053004/diff/140001/android_webview/browser/test/fake_window.cc File android_webview/browser/test/fake_window.cc (right): https://codereview.chromium.org/944053004/diff/140001/android_webview/browser/test/fake_window.cc#newcode123 android_webview/browser/test/fake_window.cc:123: view_->PrepareToDraw(gfx::Vector2d(), gfx::Rect(0, 0, 50, 50)); On 2015/02/24 22:06:22, boliu ...
5 years, 10 months ago (2015-02-24 22:19:03 UTC) #31
hush (inactive)
+sievers for content/
5 years, 10 months ago (2015-02-24 22:20:53 UTC) #33
no sievers
content lgtm https://codereview.chromium.org/944053004/diff/160001/content/public/test/test_synchronous_compositor_android.cc File content/public/test/test_synchronous_compositor_android.cc (right): https://codereview.chromium.org/944053004/diff/160001/content/public/test/test_synchronous_compositor_android.cc#newcode47 content/public/test/test_synchronous_compositor_android.cc:47: scoped_ptr<cc::CompositorFrame> compositor_frame = nit: scoped_ptr<cc::CompositorFrame> compositor_frame(new cc::CompositorFrame()); ...
5 years, 10 months ago (2015-02-25 20:54:36 UTC) #34
hush (inactive)
https://codereview.chromium.org/944053004/diff/160001/content/public/test/test_synchronous_compositor_android.cc File content/public/test/test_synchronous_compositor_android.cc (right): https://codereview.chromium.org/944053004/diff/160001/content/public/test/test_synchronous_compositor_android.cc#newcode47 content/public/test/test_synchronous_compositor_android.cc:47: scoped_ptr<cc::CompositorFrame> compositor_frame = On 2015/02/25 20:54:36, sievers wrote: > ...
5 years, 10 months ago (2015-02-25 21:12:42 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/944053004/180001
5 years, 10 months ago (2015-02-25 21:14:05 UTC) #38
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-02-25 22:11:28 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-02-25 22:44:57 UTC) #40
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d00f10451d36d173b4d900c9cf3b1d0ff639350e
Cr-Commit-Position: refs/heads/master@{#318126}

Powered by Google App Engine
This is Rietveld 408576698