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

Issue 1150423003: webview: Initialize synchronous compositor after first activation. (Closed)

Created:
5 years, 6 months ago by sunnyps
Modified:
5 years, 6 months ago
Reviewers:
boliu, mithro-old
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

webview: Initialize synchronous compositor after first activation. Drawing before the first activation produces no results but can cause cc DCHECKs to fail. To prevent this SynchronousCompositorImpl doesn't register with it's client until the first activation. BUG=492815 Committed: https://crrev.com/0e3d721470add955c056e3051614f58c7220e85b Cr-Commit-Position: refs/heads/master@{#332334}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Try another approach #

Patch Set 3 : Back to first approach #

Total comments: 1

Patch Set 4 : braces #

Patch Set 5 : fix broken tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -54 lines) Patch
M android_webview/browser/browser_view_renderer.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsRenderTest.java View 2 chunks +1 line, -5 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_external_begin_frame_source.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 2 3 4 11 chunks +67 lines, -48 lines 0 comments Download

Messages

Total messages: 26 (9 generated)
sunnyps
PTAL
5 years, 6 months ago (2015-05-29 23:09:58 UTC) #2
boliu
https://codereview.chromium.org/1150423003/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/1150423003/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode159 content/browser/android/in_process/synchronous_compositor_impl.cc:159: compositor_client_->DidDestroyCompositor(this); Every single compositor_client_ call needs to be guarded ...
5 years, 6 months ago (2015-05-29 23:21:12 UTC) #3
boliu
https://codereview.chromium.org/1150423003/diff/1/content/browser/android/in_process/synchronous_compositor_impl.h File content/browser/android/in_process/synchronous_compositor_impl.h (right): https://codereview.chromium.org/1150423003/diff/1/content/browser/android/in_process/synchronous_compositor_impl.h#newcode115 content/browser/android/in_process/synchronous_compositor_impl.h:115: bool has_initialized_; output_surface_ready_? And leave a comment explanation what ...
5 years, 6 months ago (2015-05-29 23:22:32 UTC) #4
sunnyps
PTAL Previous approach was causing issues with the GC tests - DidDestroyCompositor was being called ...
5 years, 6 months ago (2015-05-30 00:19:39 UTC) #5
sunnyps
PTAL
5 years, 6 months ago (2015-05-30 00:59:17 UTC) #6
boliu
lgtm https://codereview.chromium.org/1150423003/diff/40001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/1150423003/diff/40001/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode374 content/browser/android/in_process/synchronous_compositor_impl.cc:374: if (registered_with_client_) style: Need braces for if statements ...
5 years, 6 months ago (2015-05-30 01:06:29 UTC) #7
mithro-old
On 2015/05/30 01:06:29, boliu wrote: > lgtm > > https://codereview.chromium.org/1150423003/diff/40001/content/browser/android/in_process/synchronous_compositor_impl.cc > File content/browser/android/in_process/synchronous_compositor_impl.cc (right): > ...
5 years, 6 months ago (2015-06-01 03:29:20 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150423003/60001
5 years, 6 months ago (2015-06-01 18:51:28 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/28446)
5 years, 6 months ago (2015-06-01 21:04:35 UTC) #13
sunnyps
Turned out that setting the delegate for input handler causes UpdateRootLayerState to be called immediately ...
5 years, 6 months ago (2015-06-02 01:38:02 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150423003/80001
5 years, 6 months ago (2015-06-02 01:39:22 UTC) #17
carpediemishere_gmail.com
how do i unsubscribe from this list? On Mon, Jun 1, 2015 at 9:39 PM, ...
5 years, 6 months ago (2015-06-02 01:41:44 UTC) #18
boliu
lgtm
5 years, 6 months ago (2015-06-02 01:47:42 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-02 02:38:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150423003/80001
5 years, 6 months ago (2015-06-02 03:04:59 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-02 03:09:31 UTC) #25
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 03:10:33 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0e3d721470add955c056e3051614f58c7220e85b
Cr-Commit-Position: refs/heads/master@{#332334}

Powered by Google App Engine
This is Rietveld 408576698