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

Issue 151093005: cc: Update Main RendererCapabilities on DeferredInitialize (Closed)

Created:
6 years, 10 months ago by boliu
Modified:
6 years, 10 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Update Main RendererCapabilities on DeferredInitialize Also update caps on ReleaseGL. The updated RendererCapabilities are posted back to the main thread. Main thread layers will receive OnOutputSurfaceCreated (should be renamed to OnRendererCapabilitiesChanged) when this happens. Note this is also called on first renderer initialization. BUG=332616 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251853

Patch Set 1 #

Patch Set 2 : cancel commits with stale caps, no tests yet #

Total comments: 1

Patch Set 3 : with tests #

Total comments: 26

Patch Set 4 : rebase + clang format #

Patch Set 5 : Address some comments #

Patch Set 6 : Move staleness check to ReadyToFinalizeTextureUpdates. Add last ref check to TextureLayer::OnOutput… #

Patch Set 7 : rebase #

Patch Set 8 : Remove DCHECK in TextureLayer::OnOutputSurfaceCreated #

Total comments: 3

Patch Set 9 : rebase #

Patch Set 10 : Release Mailbox if UsingSharedMemoryResources changed in TextureLayer::Update #

Total comments: 19

Patch Set 11 : remove cancel commit logic #

Patch Set 12 : UpdateRendererCapabilitiesOnImplThread in CreateAndSetRenderer #

Patch Set 13 : UpdateRendererCapabilitiesOnImplThread in CreateAndSetRenderer #

Total comments: 3

Patch Set 14 : Simplify a lot #

Patch Set 15 : Add back a DCHECK that was accdentially deleted #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -5 lines) Patch
M cc/test/fake_layer_tree_host_impl_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 chunks +21 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -5 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
boliu
PTAL. HUDLayer and PaintedScrollbarLayer only uses the max texture size, so already does the right ...
6 years, 10 months ago (2014-02-07 04:29:55 UTC) #1
boliu
Friendly ping?
6 years, 10 months ago (2014-02-10 21:02:56 UTC) #2
boliu
On 2014/02/10 21:02:56, boliu wrote: > Friendly ping? Would be great if I could get ...
6 years, 10 months ago (2014-02-11 19:39:31 UTC) #3
danakj
On Tue, Feb 11, 2014 at 2:39 PM, <boliu@chromium.org> wrote: > On 2014/02/10 21:02:56, boliu ...
6 years, 10 months ago (2014-02-11 19:56:46 UTC) #4
danakj
https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc#newcode280 cc/layers/texture_layer.cc:280: if (uses_mailbox_) { If we release the mailbox here, ...
6 years, 10 months ago (2014-02-11 19:58:59 UTC) #5
boliu
https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc#newcode280 cc/layers/texture_layer.cc:280: if (uses_mailbox_) { On 2014/02/11 19:58:59, danakj wrote: > ...
6 years, 10 months ago (2014-02-11 21:44:07 UTC) #6
boliu
Oops, got a bit trigger happy in last reply... https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc#newcode280 cc/layers/texture_layer.cc:280: ...
6 years, 10 months ago (2014-02-12 01:48:57 UTC) #7
danakj
https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc#newcode280 cc/layers/texture_layer.cc:280: if (uses_mailbox_) { On 2014/02/12 01:48:57, boliu wrote: > ...
6 years, 10 months ago (2014-02-12 15:40:01 UTC) #8
boliu
https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/60001/cc/layers/texture_layer.cc#newcode280 cc/layers/texture_layer.cc:280: if (uses_mailbox_) { On 2014/02/12 15:40:01, danakj wrote: > ...
6 years, 10 months ago (2014-02-12 17:45:27 UTC) #9
boliu
PTAL Moved the staleness check to ThreadProxy::ReadyToFinalizeTextureUpdates, the last point before commit happens. No changes ...
6 years, 10 months ago (2014-02-12 18:54:46 UTC) #10
boliu
https://codereview.chromium.org/151093005/diff/650001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/650001/cc/layers/texture_layer.cc#newcode281 cc/layers/texture_layer.cc:281: holder_ref_.reset(); I removed the DCHECK for now. This broke ...
6 years, 10 months ago (2014-02-13 20:14:38 UTC) #11
boliu
ping again? :)
6 years, 10 months ago (2014-02-14 15:40:51 UTC) #12
danakj
https://codereview.chromium.org/151093005/diff/650001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/650001/cc/layers/texture_layer.cc#newcode281 cc/layers/texture_layer.cc:281: holder_ref_.reset(); On 2014/02/13 20:14:39, boliu wrote: > I removed ...
6 years, 10 months ago (2014-02-14 17:59:10 UTC) #13
boliu
https://codereview.chromium.org/151093005/diff/650001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/650001/cc/layers/texture_layer.cc#newcode281 cc/layers/texture_layer.cc:281: holder_ref_.reset(); On 2014/02/14 17:59:11, danakj wrote: > On 2014/02/13 ...
6 years, 10 months ago (2014-02-14 18:44:42 UTC) #14
boliu
PTAL Now TextureLayer::Update checks if UsingSharedMemoryResources changed, and release old mailbox if it did.
6 years, 10 months ago (2014-02-14 19:09:48 UTC) #15
danakj
https://codereview.chromium.org/151093005/diff/740001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/layers/texture_layer.cc#newcode228 cc/layers/texture_layer.cc:228: holder_ref_.reset(); Now that we're here, I wonder.. the call ...
6 years, 10 months ago (2014-02-14 19:38:50 UTC) #16
boliu
https://codereview.chromium.org/151093005/diff/740001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/thread_proxy.cc#newcode1022 cc/trees/thread_proxy.cc:1022: On 2014/02/14 19:38:50, danakj wrote: > I think if ...
6 years, 10 months ago (2014-02-14 19:48:53 UTC) #17
danakj
https://codereview.chromium.org/151093005/diff/740001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/thread_proxy.cc#newcode1022 cc/trees/thread_proxy.cc:1022: On 2014/02/14 19:48:53, boliu wrote: > On 2014/02/14 19:38:50, ...
6 years, 10 months ago (2014-02-14 19:53:24 UTC) #18
boliu
https://codereview.chromium.org/151093005/diff/740001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/thread_proxy.cc#newcode1022 cc/trees/thread_proxy.cc:1022: On 2014/02/14 19:53:25, danakj wrote: > On 2014/02/14 19:48:53, ...
6 years, 10 months ago (2014-02-14 20:06:14 UTC) #19
enne (OOO)
https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 cc/trees/layer_tree_host_impl.cc:1878: client_->UpdateRendererCapabilitiesOnImplThread(); This seems like the wrong place to do ...
6 years, 10 months ago (2014-02-14 20:21:47 UTC) #20
boliu
So just tried calling Scheduler::FinishCommit from ThreadProxy::StartCommitOnImplThread if impl-side painting is on. Clank *seems* to ...
6 years, 10 months ago (2014-02-14 20:45:42 UTC) #21
boliu
Removed the cancel commit code and addressed other comments. PTAL https://codereview.chromium.org/151093005/diff/740001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/layers/texture_layer.cc#newcode228 ...
6 years, 10 months ago (2014-02-14 22:03:07 UTC) #22
enne (OOO)
https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 cc/trees/layer_tree_host_impl.cc:1878: client_->UpdateRendererCapabilitiesOnImplThread(); On 2014/02/14 22:03:08, boliu wrote: > On 2014/02/14 ...
6 years, 10 months ago (2014-02-14 22:08:49 UTC) #23
boliu
https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 cc/trees/layer_tree_host_impl.cc:1878: client_->UpdateRendererCapabilitiesOnImplThread(); On 2014/02/14 22:08:49, enne wrote: > On 2014/02/14 ...
6 years, 10 months ago (2014-02-14 22:14:49 UTC) #24
danakj
On 2014/02/14 22:14:49, boliu wrote: > https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 > ...
6 years, 10 months ago (2014-02-14 22:17:42 UTC) #25
enne (OOO)
lgtm https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 cc/trees/layer_tree_host_impl.cc:1878: client_->UpdateRendererCapabilitiesOnImplThread(); On 2014/02/14 22:14:49, boliu wrote: > On ...
6 years, 10 months ago (2014-02-14 22:19:39 UTC) #26
enne (OOO)
Er, did not mean to lgtm that. Mis-mouseclick. :P
6 years, 10 months ago (2014-02-14 22:19:58 UTC) #27
enne (OOO)
The CQ bit was unchecked by enne@chromium.org
6 years, 10 months ago (2014-02-14 22:20:08 UTC) #28
boliu
https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 cc/trees/layer_tree_host_impl.cc:1878: client_->UpdateRendererCapabilitiesOnImplThread(); On 2014/02/14 22:19:39, enne wrote: > Sure, but ...
6 years, 10 months ago (2014-02-14 22:27:30 UTC) #29
enne (OOO)
https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/151093005/diff/740001/cc/trees/layer_tree_host_impl.cc#newcode1878 cc/trees/layer_tree_host_impl.cc:1878: client_->UpdateRendererCapabilitiesOnImplThread(); On 2014/02/14 22:27:30, boliu wrote: > On 2014/02/14 ...
6 years, 10 months ago (2014-02-14 23:02:27 UTC) #30
boliu
Ok, did the change to call UpdateRendererCapabilitiesOnImplThread in CreateAndSetRenderer. Please take a glance to see ...
6 years, 10 months ago (2014-02-14 23:49:05 UTC) #31
enne (OOO)
Thanks. lgtm % danakj
6 years, 10 months ago (2014-02-14 23:57:18 UTC) #32
enne (OOO)
https://codereview.chromium.org/151093005/diff/940002/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/151093005/diff/940002/cc/trees/single_thread_proxy.cc#newcode374 cc/trees/single_thread_proxy.cc:374: layer_tree_host_->RendererCapabilitiesChanged(); Should this check the previous ones and only ...
6 years, 10 months ago (2014-02-14 23:57:31 UTC) #33
boliu
https://codereview.chromium.org/151093005/diff/940002/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/151093005/diff/940002/cc/trees/single_thread_proxy.cc#newcode374 cc/trees/single_thread_proxy.cc:374: layer_tree_host_->RendererCapabilitiesChanged(); On 2014/02/14 23:57:32, enne wrote: > Should this ...
6 years, 10 months ago (2014-02-14 23:59:13 UTC) #34
enne (OOO)
https://codereview.chromium.org/151093005/diff/940002/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/151093005/diff/940002/cc/trees/single_thread_proxy.cc#newcode374 cc/trees/single_thread_proxy.cc:374: layer_tree_host_->RendererCapabilitiesChanged(); On 2014/02/14 23:59:14, boliu wrote: > On 2014/02/14 ...
6 years, 10 months ago (2014-02-15 00:00:14 UTC) #35
boliu
On 2014/02/15 00:00:14, enne wrote: > Why don't we want the check? See the chunk ...
6 years, 10 months ago (2014-02-15 00:04:53 UTC) #36
enne (OOO)
On 2014/02/15 00:04:53, boliu wrote: > On 2014/02/15 00:00:14, enne wrote: > > Why don't ...
6 years, 10 months ago (2014-02-15 00:07:22 UTC) #37
boliu
On 2014/02/15 00:07:22, enne wrote: > Can you clean that up? It shouldn't be called ...
6 years, 10 months ago (2014-02-15 00:27:42 UTC) #38
boliu
On 2014/02/15 00:27:42, boliu wrote: > Interesting this got so small at the end, removed ...
6 years, 10 months ago (2014-02-15 00:30:14 UTC) #39
enne (OOO)
Thanks for the cleanup! This looks way better. :)
6 years, 10 months ago (2014-02-15 00:36:07 UTC) #40
boliu
On 2014/02/15 00:36:07, enne wrote: > Thanks for the cleanup! This looks way better. :) ...
6 years, 10 months ago (2014-02-15 00:43:41 UTC) #41
boliu
On 2014/02/15 00:43:41, boliu wrote: > On 2014/02/15 00:36:07, enne wrote: > > Thanks for ...
6 years, 10 months ago (2014-02-18 15:14:16 UTC) #42
danakj
LGTM
6 years, 10 months ago (2014-02-18 20:18:47 UTC) #43
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 10 months ago (2014-02-18 20:18:54 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/151093005/1150001
6 years, 10 months ago (2014-02-18 20:20:04 UTC) #45
commit-bot: I haz the power
6 years, 10 months ago (2014-02-18 22:12:04 UTC) #46
Message was sent while issue was closed.
Change committed as 251853

Powered by Google App Engine
This is Rietveld 408576698