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

Issue 2647583002: Switching to CompositorFrameSinkSupport in android_webview::SurfacesInstance (Closed)

Created:
3 years, 11 months ago by Saman Sami
Modified:
3 years, 10 months ago
Reviewers:
Fady Samuel, boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switching to CompositorFrameSinkSupport in android_webview::SurfacesInstance This CL gets rid of SurfaceFactory in android_webview::SurfacesInstance and replaces it with CompositorFrameSinkSupport. We're doing this to unify the CompositorFrameSink API used by clients, and to simplify transitioning to SurfaceReferences. BUG=674102 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2647583002 Cr-Commit-Position: refs/heads/master@{#450035} Committed: https://chromium.googlesource.com/chromium/src/+/9eb0f5a037f216e9a0d824ebadc3b204ce479e7a

Patch Set 1 #

Total comments: 6

Patch Set 2 : c #

Total comments: 4

Patch Set 3 : c #

Patch Set 4 : c #

Total comments: 2

Patch Set 5 : c #

Patch Set 6 : c #

Total comments: 6

Patch Set 7 : c #

Patch Set 8 : c #

Total comments: 2

Patch Set 9 : c #

Total comments: 5

Patch Set 10 : c #

Total comments: 1

Patch Set 11 : c #

Patch Set 12 : c #

Total comments: 8

Patch Set 13 : c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -27 lines) Patch
M android_webview/browser/surfaces_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +10 lines, -7 lines 0 comments Download
M android_webview/browser/surfaces_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +13 lines, -20 lines 0 comments Download

Messages

Total messages: 78 (52 generated)
Fady Samuel
Just a couple of points. Please get boliu's opinion on this. Bo, this isn't introducing ...
3 years, 11 months ago (2017-01-18 23:14:41 UTC) #4
Saman Sami
boliu: Please review all files. https://codereview.chromium.org/2647583002/diff/1/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (right): https://codereview.chromium.org/2647583002/diff/1/android_webview/browser/surfaces_instance.cc#newcode55 android_webview/browser/surfaces_instance.cc:55: surface_manager_->RegisterFrameSinkId(frame_sink_id_); On 2017/01/18 23:14:40, ...
3 years, 11 months ago (2017-01-18 23:22:09 UTC) #9
boliu
https://codereview.chromium.org/2647583002/diff/1/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (left): https://codereview.chromium.org/2647583002/diff/1/android_webview/browser/surfaces_instance.cc#oldcode144 android_webview/browser/surfaces_instance.cc:144: display_->DrawAndSwap(); On 2017/01/18 23:14:40, Fady Samuel wrote: > I ...
3 years, 11 months ago (2017-01-19 00:24:13 UTC) #13
Saman Sami
PTAL Display now resizes to viewport. I have also created another CL that removes the ...
3 years, 11 months ago (2017-01-19 22:36:27 UTC) #22
boliu
On 2017/01/19 22:36:27, Saman Sami wrote: > PTAL > > Display now resizes to viewport. ...
3 years, 11 months ago (2017-01-19 22:44:39 UTC) #23
Saman Sami
On 2017/01/19 22:44:39, boliu wrote: > On 2017/01/19 22:36:27, Saman Sami wrote: > > PTAL ...
3 years, 11 months ago (2017-01-19 22:47:48 UTC) #24
boliu
On 2017/01/19 22:47:48, Saman Sami wrote: > On 2017/01/19 22:44:39, boliu wrote: > > On ...
3 years, 11 months ago (2017-01-19 22:51:47 UTC) #25
Saman Sami
boliu: Please review android_webview/ danakj: Please review cc/ PTAL The issue with resizing is gone ...
3 years, 11 months ago (2017-01-24 16:04:03 UTC) #37
boliu
https://codereview.chromium.org/2647583002/diff/100001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (left): https://codereview.chromium.org/2647583002/diff/100001/android_webview/browser/surfaces_instance.cc#oldcode173 android_webview/browser/surfaces_instance.cc:173: CHECK(resources.empty()); should probably keep this CHECK by implementing ReclaimResources? ...
3 years, 11 months ago (2017-01-24 16:16:53 UTC) #38
Saman Sami
PTAL https://codereview.chromium.org/2647583002/diff/100001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (left): https://codereview.chromium.org/2647583002/diff/100001/android_webview/browser/surfaces_instance.cc#oldcode173 android_webview/browser/surfaces_instance.cc:173: CHECK(resources.empty()); On 2017/01/24 16:16:52, boliu wrote: > should ...
3 years, 11 months ago (2017-01-24 16:51:28 UTC) #41
danakj
https://codereview.chromium.org/2647583002/diff/140001/cc/surfaces/compositor_frame_sink_support_client.h File cc/surfaces/compositor_frame_sink_support_client.h (right): https://codereview.chromium.org/2647583002/diff/140001/cc/surfaces/compositor_frame_sink_support_client.h#newcode15 cc/surfaces/compositor_frame_sink_support_client.h:15: class CompositorFrameSinkSupportClient : public DisplayClient { This is not ...
3 years, 11 months ago (2017-01-24 17:12:33 UTC) #42
Saman Sami
PTAL https://codereview.chromium.org/2647583002/diff/140001/cc/surfaces/compositor_frame_sink_support_client.h File cc/surfaces/compositor_frame_sink_support_client.h (right): https://codereview.chromium.org/2647583002/diff/140001/cc/surfaces/compositor_frame_sink_support_client.h#newcode15 cc/surfaces/compositor_frame_sink_support_client.h:15: class CompositorFrameSinkSupportClient : public DisplayClient { On 2017/01/24 ...
3 years, 11 months ago (2017-01-24 17:25:09 UTC) #45
boliu
https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h File android_webview/browser/surfaces_instance.h (right): https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h#newcode59 android_webview/browser/surfaces_instance.h:59: // cc::CompositorFrameSinkSupport implementation. CompositorFrameSinkSupportClient https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h#newcode60 android_webview/browser/surfaces_instance.h:60: void DidReceiveCompositorFrameAck() override ...
3 years, 11 months ago (2017-01-24 17:41:50 UTC) #46
Saman Sami
PTAL https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h File android_webview/browser/surfaces_instance.h (right): https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h#newcode59 android_webview/browser/surfaces_instance.h:59: // cc::CompositorFrameSinkSupport implementation. On 2017/01/24 17:41:50, boliu wrote: ...
3 years, 11 months ago (2017-01-24 17:44:57 UTC) #48
boliu
https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h File android_webview/browser/surfaces_instance.h (right): https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h#newcode60 android_webview/browser/surfaces_instance.h:60: void DidReceiveCompositorFrameAck() override {} On 2017/01/24 17:44:57, Saman Sami ...
3 years, 11 months ago (2017-01-24 17:50:57 UTC) #50
Saman Sami
On 2017/01/24 17:50:57, boliu wrote: > https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h > File android_webview/browser/surfaces_instance.h (right): > > https://codereview.chromium.org/2647583002/diff/160001/android_webview/browser/surfaces_instance.h#newcode60 > ...
3 years, 11 months ago (2017-01-24 17:58:26 UTC) #51
danakj
https://codereview.chromium.org/2647583002/diff/180001/cc/surfaces/compositor_frame_sink_support_client.h File cc/surfaces/compositor_frame_sink_support_client.h (right): https://codereview.chromium.org/2647583002/diff/180001/cc/surfaces/compositor_frame_sink_support_client.h#newcode35 cc/surfaces/compositor_frame_sink_support_client.h:35: // DisplayClient methods. Hm this is weird too. Why ...
3 years, 11 months ago (2017-01-24 18:23:06 UTC) #52
Fady Samuel
Is there anything blocking this patch now?
3 years, 10 months ago (2017-02-06 04:30:08 UTC) #55
Fady Samuel
https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (right): https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.cc#newcode55 android_webview/browser/surfaces_instance.cc:55: this, surface_manager_.get(), frame_sink_id_, true)); true /* submits_to_display_compositor */ https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.h ...
3 years, 10 months ago (2017-02-13 17:54:09 UTC) #60
Fady Samuel
https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (right): https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.cc#newcode55 android_webview/browser/surfaces_instance.cc:55: this, surface_manager_.get(), frame_sink_id_, true)); true /* submits_to_display_compositor */ https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.h ...
3 years, 10 months ago (2017-02-13 17:54:09 UTC) #61
Saman Sami
boliu@: Please review all files fsamuel@: Please review all files https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (right): https://codereview.chromium.org/2647583002/diff/220001/android_webview/browser/surfaces_instance.cc#newcode55 ...
3 years, 10 months ago (2017-02-13 18:09:22 UTC) #67
Fady Samuel
BTW, in your CL description, please explain that we're doing this to unify the CompositorFrameSink ...
3 years, 10 months ago (2017-02-13 18:33:45 UTC) #68
Fady Samuel
LGTM
3 years, 10 months ago (2017-02-13 18:35:52 UTC) #69
boliu
lgtm
3 years, 10 months ago (2017-02-13 18:50:39 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2647583002/240001
3 years, 10 months ago (2017-02-13 18:54:07 UTC) #75
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 19:01:14 UTC) #78
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/9eb0f5a037f216e9a0d824ebadc3...

Powered by Google App Engine
This is Rietveld 408576698