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

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)

Created:
4 years, 1 month ago by Alex Z.
Modified:
4 years ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, droger+watchlist_chromium.org, sdefresne+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moved exo::SurfaceFactoryOwner to its own file and renamed it to exo::CompositorFrameSink. CompositorFrameSink implements cc::mojom::MojoCompositorFrameSink. CompositorFrameSink is no longer a friend class of exo::Surface. Added exo::CompositorFrameSinkHolder class that implements cc::mojom::MojoCompositorFrameSinkClient. BUG=659601 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2493223002 Committed: https://crrev.com/d8f4f642d72fc5fdb428f5a90ca207c2143a6f79 Cr-Commit-Position: refs/heads/master@{#437780}

Patch Set 1 #

Patch Set 2 : Renamed SurfaceFactoryOwner to ExoCompositorFrameSink and moved it to its own file #

Patch Set 3 : Moved ExoCompositorFrameSink into its own file #

Total comments: 10

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : Added ExoCompositorFrameSink::SubmitCompositorFrame(). #

Total comments: 15

Patch Set 6 : Nit changes based on comments #

Total comments: 20

Patch Set 7 : Added LocalFrameId as the second parameter of ExoCompositorFrameSink::SubmitCompositorFrame(); Addr… #

Patch Set 8 : Calling SurfaceManager::UnregisterSurfaceFactoryClient() in exo::Surface::~Surface() to fix test cr… #

Total comments: 10

Patch Set 9 : Reordered parameters of SubmitCompositorFrame() #

Patch Set 10 : Added CompositorFrameSinkHolder class and addressed comments" #

Total comments: 23

Patch Set 11 : CompositorFrameSinkHolder implements MojoCompositorFrameSinkClient #

Patch Set 12 : Added base::MessageLoop to ExoTestBase #

Patch Set 13 : Add mojo initialization in exo/test/run_all_unittests.cc and updated include rules accordingly" #

Patch Set 14 : Updated DEPS rules to address errors in trybots' analyze step #

Total comments: 2

Patch Set 15 : Modified DEPS rules; Added WillDrawSurface() to MojoCompositorFrameSinkClient #

Patch Set 16 : Fixed include rules #

Patch Set 17 : Addressed some comments and rebased #

Total comments: 32

Patch Set 18 : Changed type of CompositorFrameSinkHolder::surface_ to WeakPtr<Surface> #

Patch Set 19 : Addressed comments #

Total comments: 4

Patch Set 20 : Addressed comments #

Patch Set 21 : Added an ExternalBeginFrameSource to CompositorFrameSinkHolder #

Total comments: 8

Patch Set 22 : Added RunAllPendingInMessageLoop() to the end of SurfaceTest.Attach #

Patch Set 23 : Surface::~Surface() calls UnregisterSurfaceFactoryClient() #

Patch Set 24 : Revert "Surface::~Surface() calls UnregisterSurfaceFactoryClient()" #

Patch Set 25 : NOT FOR COMMIT: Added MessageLoopRunner and printfs for debugging #

Patch Set 26 : NOT FOR COMMIT: Fixed GamepadTest.OnStageChange with TestReleaseCallbackManager. #

Patch Set 27 : Added RunAllPendingInMessageLoop() to AshTestHelper::TearDown() to ensure exo::CompositorFrameSinkH… #

Patch Set 28 : Thoroughly removed TestCallbackManager #

Patch Set 29 : Rebase #

Patch Set 30 : Added EvictFrame() to MojoCompositorFrameSink and its implementations #

Patch Set 31 : Added EvictFrame() to OffscreenCanvasCompositorFrameSink to comply with the interface change #

Patch Set 32 : Modified ~ExoCompositorFrameSink() so it looks like ~GpuCompositorFrameSink() #

Patch Set 33 : Removed another printf #

Patch Set 34 : Undid a change on an if condition in exo::Surface::CommitSurfaceHierarchy() #

Total comments: 24

Patch Set 35 : Renamed ExoCompositorFrameSink to CompositorFrameSink; removed unnecessary includes #

Patch Set 36 : Renamed files #

Patch Set 37 : Addressed comments #

Patch Set 38 : Changed exo::CompositorFrameSinkHolder::compositor_frame_sink_ from std::unique_ptr<CompositorFrame… #

Patch Set 39 : NOT FOR COMMIT: Failing SurfaceTest.OverlayCandidate with GL ERROR: GL_INVALID_ENUM : glBindTexture… #

Patch Set 40 : Code clean up #

Total comments: 12

Patch Set 41 : Added MojoCompositorFrameSink::Require() and MojoCompositorFrameSink::Satisfy() #

Total comments: 4

Patch Set 42 : Moved CompositorFrameSink implementation details in to CompositorFrameSinkSupport; addressed commen… #

Total comments: 2

Patch Set 43 : exo::Surface uses CompositorFrameSink accessor from CompositorFrameSinkHolder #

Total comments: 84

Patch Set 44 : Addressed comments: #

Total comments: 4

Patch Set 45 : Fixed a typo in mojo_compositor_frame_sink.mojom #

Total comments: 2

Patch Set 46 : Call UpdateNeedsBeginFrame() at the end of CompositorFrameSinkHolder::ActivateFrameCallbacks() #

Total comments: 1

Patch Set 47 : Addressed comments; removed unnecessary includes #

Patch Set 48 : Removed unnecessary includes #

Patch Set 49 : Added dependency //mojo/edk/embedder:headers to exo_unittests #

Total comments: 18

Patch Set 50 : Replaced SatisfyCallback() and RequireCallback() with CompositorFrameSinkHolder::Satisfy() and Comp… #

Total comments: 4

Patch Set 51 : Removed unused MojoCompositorFrameSinkPtr #

Patch Set 52 : Moving release callbacks to a local variable before running in CompositorFrameSinkHolder #

Patch Set 53 : Added list_.reset() at the end of DesktopMediaListAshTest.Screen to stop refreshing #

Patch Set 54 : Added comments to explain the reset() #

Total comments: 2

Patch Set 55 : Override DesktopMediaListAshTest::TearDown() to reset list_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -194 lines) Patch
M ash/test/ash_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 1 chunk +6 lines, -0 lines 0 comments Download
M components/exo/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 2 chunks +5 lines, -0 lines 0 comments Download
M components/exo/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
A components/exo/compositor_frame_sink.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 1 chunk +61 lines, -0 lines 0 comments Download
A components/exo/compositor_frame_sink.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 1 chunk +101 lines, -0 lines 0 comments Download
A components/exo/compositor_frame_sink_holder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +108 lines, -0 lines 0 comments Download
A components/exo/compositor_frame_sink_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +142 lines, -0 lines 0 comments Download
M components/exo/surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 9 chunks +12 lines, -55 lines 0 comments Download
M components/exo/surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 12 chunks +30 lines, -139 lines 0 comments Download
M components/exo/surface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 3 chunks +7 lines, -0 lines 0 comments Download
M components/exo/test/run_all_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 149 (67 generated)
Fady Samuel
https://codereview.chromium.org/2493223002/diff/40001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/40001/components/exo/exo_compositor_frame_sink.cc#newcode17 components/exo/exo_compositor_frame_sink.cc:17: aura::Env::GetInstance()->context_factory()->AllocateFrameSinkId()) { Don't allocate the FrameSinkId in here. Instead, ...
4 years, 1 month ago (2016-11-14 23:29:42 UTC) #7
Fady Samuel
4 years, 1 month ago (2016-11-14 23:29:42 UTC) #8
Fady Samuel
https://codereview.chromium.org/2493223002/diff/40001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/40001/components/exo/surface.cc#newcode180 components/exo/surface.cc:180: surface_manager_->RegisterFrameSinkId( Move this into ExoCompositorFrameSink's constructor. https://codereview.chromium.org/2493223002/diff/40001/components/exo/surface.cc#newcode183 components/exo/surface.cc:183: compositor_frame_sink_->frame_sink_id_, ...
4 years, 1 month ago (2016-11-15 15:42:40 UTC) #9
Alex Z.
https://codereview.chromium.org/2493223002/diff/40001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/40001/components/exo/exo_compositor_frame_sink.cc#newcode17 components/exo/exo_compositor_frame_sink.cc:17: aura::Env::GetInstance()->context_factory()->AllocateFrameSinkId()) { On 2016/11/14 23:29:41, Fady Samuel wrote: > ...
4 years, 1 month ago (2016-11-15 15:53:58 UTC) #12
Fady Samuel
https://codereview.chromium.org/2493223002/diff/60001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/60001/components/exo/exo_compositor_frame_sink.cc#newcode43 components/exo/exo_compositor_frame_sink.cc:43: return std::move(cc::SurfaceId(frame_sink_id_, local_frame_id)); This isn't safe. You're returning a ...
4 years, 1 month ago (2016-11-15 16:01:32 UTC) #13
Alex Z.
https://codereview.chromium.org/2493223002/diff/40001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/40001/components/exo/surface.cc#newcode180 components/exo/surface.cc:180: surface_manager_->RegisterFrameSinkId( On 2016/11/15 15:42:40, Fady Samuel wrote: > Move ...
4 years, 1 month ago (2016-11-15 22:27:30 UTC) #18
Fady Samuel
+reveman@: release_callbacks are confusing. They seem to differ from the way resources are returned elsewhere ...
4 years, 1 month ago (2016-11-15 23:19:46 UTC) #21
Fady Samuel
+reveman@ for real this time.
4 years, 1 month ago (2016-11-16 03:13:32 UTC) #23
reveman
It's clear from the description what the goals are but it's not clear to me ...
4 years, 1 month ago (2016-11-16 03:48:38 UTC) #24
Fady Samuel
On 2016/11/16 03:48:38, reveman wrote: > It's clear from the description what the goals are ...
4 years, 1 month ago (2016-11-16 04:05:57 UTC) #25
Alex Z.
https://codereview.chromium.org/2493223002/diff/80001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/80001/components/exo/exo_compositor_frame_sink.h#newcode60 components/exo/exo_compositor_frame_sink.h:60: const cc::FrameSinkId& frame_sink_id() { return frame_sink_id_; } On 2016/11/15 ...
4 years, 1 month ago (2016-11-16 14:55:47 UTC) #26
Fady Samuel
https://codereview.chromium.org/2493223002/diff/100001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/100001/components/exo/exo_compositor_frame_sink.h#newcode46 components/exo/exo_compositor_frame_sink.h:46: // cc::SurfaceFactoryClient: Make all these overrides private to indicate ...
4 years, 1 month ago (2016-11-16 15:02:00 UTC) #27
Fady Samuel
+jbauman@: I'm a little confused about how TransferrableResources are managed in exo. They seem different ...
4 years, 1 month ago (2016-11-16 15:10:58 UTC) #29
reveman
https://codereview.chromium.org/2493223002/diff/100001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/100001/components/exo/exo_compositor_frame_sink.h#newcode46 components/exo/exo_compositor_frame_sink.h:46: // cc::SurfaceFactoryClient: On 2016/11/16 at 15:02:00, Fady Samuel wrote: ...
4 years, 1 month ago (2016-11-16 17:43:30 UTC) #30
Alex Z.
https://codereview.chromium.org/2493223002/diff/100001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/100001/components/exo/exo_compositor_frame_sink.h#newcode46 components/exo/exo_compositor_frame_sink.h:46: // cc::SurfaceFactoryClient: On 2016/11/16 15:02:00, Fady Samuel wrote: > ...
4 years, 1 month ago (2016-11-16 19:56:16 UTC) #31
Fady Samuel
https://codereview.chromium.org/2493223002/diff/140001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/140001/components/exo/exo_compositor_frame_sink.cc#newcode30 components/exo/exo_compositor_frame_sink.cc:30: for (auto& resource : resources) { So I see ...
4 years, 1 month ago (2016-11-16 21:29:41 UTC) #36
jbauman
https://codereview.chromium.org/2493223002/diff/140001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/140001/components/exo/exo_compositor_frame_sink.cc#newcode30 components/exo/exo_compositor_frame_sink.cc:30: for (auto& resource : resources) { On 2016/11/16 21:29:40, ...
4 years, 1 month ago (2016-11-16 22:01:56 UTC) #37
Fady Samuel
https://codereview.chromium.org/2493223002/diff/140001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/140001/components/exo/surface.cc#newcode174 components/exo/surface.cc:174: compositor_frame_sink_( So it sounds like we want a CompositorFrameSinkHolder ...
4 years, 1 month ago (2016-11-16 23:10:52 UTC) #38
Alex Z.
https://codereview.chromium.org/2493223002/diff/140001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/140001/components/exo/exo_compositor_frame_sink.h#newcode48 components/exo/exo_compositor_frame_sink.h:48: const cc::LocalFrameId& local_frame_id); On 2016/11/16 21:29:40, Fady Samuel wrote: ...
4 years, 1 month ago (2016-11-17 21:32:27 UTC) #39
Fady Samuel
https://codereview.chromium.org/2493223002/diff/180001/components/exo/compositor_frame_sink_holder.h File components/exo/compositor_frame_sink_holder.h (right): https://codereview.chromium.org/2493223002/diff/180001/components/exo/compositor_frame_sink_holder.h#newcode23 components/exo/compositor_frame_sink_holder.h:23: void DidReceiveCompositorFrameAck(); Add implementations for these? TODOs are fine. ...
4 years, 1 month ago (2016-11-17 21:42:54 UTC) #40
jbauman
https://codereview.chromium.org/2493223002/diff/180001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/180001/components/exo/exo_compositor_frame_sink.h#newcode80 components/exo/exo_compositor_frame_sink.h:80: scoped_refptr<CompositorFrameSinkHolder> client_; This is backwards. The CompositorFrameSinkHolder needs to ...
4 years, 1 month ago (2016-11-17 22:47:37 UTC) #41
Fady Samuel
https://codereview.chromium.org/2493223002/diff/180001/components/exo/surface.h File components/exo/surface.h (left): https://codereview.chromium.org/2493223002/diff/180001/components/exo/surface.h#oldcode353 components/exo/surface.h:353: cc::SurfaceManager* surface_manager_; Do we still need this? https://codereview.chromium.org/2493223002/diff/180001/components/exo/surface.h File ...
4 years, 1 month ago (2016-11-21 16:51:37 UTC) #42
Fady Samuel
This is looking a lot better. https://codereview.chromium.org/2493223002/diff/260001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/260001/components/exo/surface.cc#newcode701 components/exo/surface.cc:701: compositor_frame_sink_holder_->release_callbacks_[resource.id] = AddResourceReleaseCallback(ResourceId, ...
4 years, 1 month ago (2016-11-21 21:09:35 UTC) #51
Alex Z.
https://codereview.chromium.org/2493223002/diff/80001/components/exo/exo_compositor_frame_sink.h File components/exo/exo_compositor_frame_sink.h (right): https://codereview.chromium.org/2493223002/diff/80001/components/exo/exo_compositor_frame_sink.h#newcode75 components/exo/exo_compositor_frame_sink.h:75: cc::FrameSinkId frame_sink_id_; On 2016/11/15 23:19:46, Fady Samuel wrote: > ...
4 years ago (2016-11-23 14:25:05 UTC) #53
Fady Samuel
https://codereview.chromium.org/2493223002/diff/320001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/320001/components/exo/compositor_frame_sink_holder.cc#newcode29 components/exo/compositor_frame_sink_holder.cc:29: release_callbacks_[id] = std::make_pair(this, std::move(callback)); This is so icky. Holding ...
4 years ago (2016-11-23 14:39:03 UTC) #54
Alex Z.
https://codereview.chromium.org/2493223002/diff/320001/components/exo/compositor_frame_sink_holder.h File components/exo/compositor_frame_sink_holder.h (right): https://codereview.chromium.org/2493223002/diff/320001/components/exo/compositor_frame_sink_holder.h#newcode27 components/exo/compositor_frame_sink_holder.h:27: Surface* surface, On 2016/11/23 14:39:02, Fady Samuel wrote: > ...
4 years ago (2016-11-23 15:11:41 UTC) #55
Alex Z.
https://codereview.chromium.org/2493223002/diff/320001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/320001/components/exo/exo_compositor_frame_sink.cc#newcode8 components/exo/exo_compositor_frame_sink.cc:8: #include "components/exo/compositor_frame_sink_holder.h" On 2016/11/23 14:39:02, Fady Samuel wrote: > ...
4 years ago (2016-11-23 15:27:41 UTC) #56
Alex Z.
https://codereview.chromium.org/2493223002/diff/320001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/320001/components/exo/surface.cc#newcode27 components/exo/surface.cc:27: #include "mojo/public/cpp/bindings/strong_binding.h" On 2016/11/23 14:39:03, Fady Samuel wrote: > ...
4 years ago (2016-11-23 15:28:18 UTC) #57
Fady Samuel
https://codereview.chromium.org/2493223002/diff/320001/ui/aura/mus/window_compositor_frame_sink.cc File ui/aura/mus/window_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/320001/ui/aura/mus/window_compositor_frame_sink.cc#newcode114 ui/aura/mus/window_compositor_frame_sink.cc:114: void WindowCompositorFrameSink::WillDrawSurface() {} Add a TODO to implement this. ...
4 years ago (2016-11-23 15:39:02 UTC) #58
Alex Z.
https://codereview.chromium.org/2493223002/diff/260001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/260001/components/exo/surface.cc#newcode701 components/exo/surface.cc:701: compositor_frame_sink_holder_->release_callbacks_[resource.id] = On 2016/11/21 21:09:35, Fady Samuel wrote: > ...
4 years ago (2016-11-23 17:46:09 UTC) #59
Fady Samuel
https://codereview.chromium.org/2493223002/diff/400001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/400001/components/exo/compositor_frame_sink_holder.cc#newcode30 components/exo/compositor_frame_sink_holder.cc:30: release_callbacks_[id] = std::make_pair(this, std::move(callback)); compositor_frame_sink_->SetNeedsBeginFrame(true); https://codereview.chromium.org/2493223002/diff/400001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): ...
4 years ago (2016-11-23 21:14:48 UTC) #60
jbauman
https://codereview.chromium.org/2493223002/diff/400001/components/exo/surface.cc File components/exo/surface.cc (left): https://codereview.chromium.org/2493223002/diff/400001/components/exo/surface.cc#oldcode252 components/exo/surface.cc:252: factory_owner_->surface_factory_->Destroy(local_frame_id_); You need to still do this destroy here. ...
4 years ago (2016-11-23 22:43:29 UTC) #61
Alex Z.
https://codereview.chromium.org/2493223002/diff/400001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/400001/components/exo/compositor_frame_sink_holder.cc#newcode30 components/exo/compositor_frame_sink_holder.cc:30: release_callbacks_[id] = std::make_pair(this, std::move(callback)); On 2016/11/23 21:14:48, Fady Samuel ...
4 years ago (2016-11-24 18:58:45 UTC) #62
Fady Samuel
https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.cc#newcode35 components/exo/compositor_frame_sink_holder.cc:35: compositor_frame_sink_->SetNeedsBeginFrame(true); This might not be necessary. https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.cc#newcode56 components/exo/compositor_frame_sink_holder.cc:56: begin_frame_source_.reset(); ...
4 years ago (2016-11-30 16:41:57 UTC) #67
reveman
FYI, this is making significant changes to exo so in addition to the unit tests ...
4 years ago (2016-11-30 17:13:08 UTC) #68
Alex Z.
https://codereview.chromium.org/2493223002/diff/660001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/660001/components/exo/surface.cc#newcode202 components/exo/surface.cc:202: compositor_frame_sink_holder_->ActivateFrameCallbacks(frame_callbacks_); On 2016/11/30 16:41:57, Fady Samuel wrote: > This ...
4 years ago (2016-11-30 19:04:04 UTC) #69
Alex Z.
https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.cc#newcode35 components/exo/compositor_frame_sink_holder.cc:35: compositor_frame_sink_->SetNeedsBeginFrame(true); On 2016/11/30 16:41:56, Fady Samuel wrote: > This ...
4 years ago (2016-11-30 20:00:30 UTC) #70
reveman
On 2016/11/30 at 19:04:04, staraz wrote: > https://codereview.chromium.org/2493223002/diff/660001/components/exo/surface.cc > File components/exo/surface.cc (right): > > https://codereview.chromium.org/2493223002/diff/660001/components/exo/surface.cc#newcode202 ...
4 years ago (2016-11-30 20:30:28 UTC) #71
Alex Z.
https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.h File components/exo/compositor_frame_sink_holder.h (right): https://codereview.chromium.org/2493223002/diff/660001/components/exo/compositor_frame_sink_holder.h#newcode74 components/exo/compositor_frame_sink_holder.h:74: std::unique_ptr<ExoCompositorFrameSink> compositor_frame_sink_; On 2016/11/30 16:41:57, Fady Samuel wrote: > ...
4 years ago (2016-11-30 20:32:53 UTC) #72
Fady Samuel
Mojo should manage the lifetime of exo::CompositorFrameSink, not CompositorFrameSinkHolder. CompositorFrameSinkHolder should just hold on to ...
4 years ago (2016-11-30 20:41:23 UTC) #73
Alex Z.
On 2016/11/30 17:13:08, reveman wrote: > FYI, this is making significant changes to exo so ...
4 years ago (2016-12-01 19:25:57 UTC) #74
jbauman
On 2016/12/01 19:25:57, StarAZ1 wrote: > On 2016/11/30 17:13:08, reveman wrote: > > FYI, this ...
4 years ago (2016-12-01 19:28:09 UTC) #75
Fady Samuel
On 2016/12/01 19:28:09, jbauman wrote: > On 2016/12/01 19:25:57, StarAZ1 wrote: > > On 2016/11/30 ...
4 years ago (2016-12-01 20:38:28 UTC) #76
Fady Samuel
https://codereview.chromium.org/2493223002/diff/780001/ash/test/ash_test_helper.cc File ash/test/ash_test_helper.cc (right): https://codereview.chromium.org/2493223002/diff/780001/ash/test/ash_test_helper.cc#newcode166 ash/test/ash_test_helper.cc:166: RunAllPendingInMessageLoop(); please add a comment indicating why this is ...
4 years ago (2016-12-01 20:38:46 UTC) #77
Fady Samuel
https://codereview.chromium.org/2493223002/diff/780001/components/exo/compositor_frame_sink.cc File components/exo/compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/780001/components/exo/compositor_frame_sink.cc#newcode33 components/exo/compositor_frame_sink.cc:33: : frame_sink_id_(frame_sink_id), Now that CompositorFrameSinkSupport has landed you can ...
4 years ago (2016-12-03 07:14:09 UTC) #78
Fady Samuel
https://codereview.chromium.org/2493223002/diff/800001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2493223002/diff/800001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode40 cc/ipc/mojo_compositor_frame_sink.mojom:40: // sequence. How about: "Add the provided |sequence| as ...
4 years ago (2016-12-05 16:40:31 UTC) #79
Alex Z.
https://codereview.chromium.org/2493223002/diff/780001/ash/test/ash_test_helper.cc File ash/test/ash_test_helper.cc (right): https://codereview.chromium.org/2493223002/diff/780001/ash/test/ash_test_helper.cc#newcode166 ash/test/ash_test_helper.cc:166: RunAllPendingInMessageLoop(); On 2016/12/01 20:38:45, Fady Samuel wrote: > please ...
4 years ago (2016-12-06 20:10:41 UTC) #80
Fady Samuel
https://codereview.chromium.org/2493223002/diff/820001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/820001/components/exo/compositor_frame_sink_holder.cc#newcode50 components/exo/compositor_frame_sink_holder.cc:50: void CompositorFrameSinkHolder::EvictFrame() { How about just providing an accessor ...
4 years ago (2016-12-06 20:14:40 UTC) #81
Alex Z.
https://codereview.chromium.org/2493223002/diff/820001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/820001/components/exo/compositor_frame_sink_holder.cc#newcode50 components/exo/compositor_frame_sink_holder.cc:50: void CompositorFrameSinkHolder::EvictFrame() { On 2016/12/06 20:14:40, Fady Samuel wrote: ...
4 years ago (2016-12-06 21:09:38 UTC) #82
Fady Samuel
I think I'm generally happy with this patch at this point. Preliminary non-OWNER lgtm.
4 years ago (2016-12-06 22:37:51 UTC) #83
jbauman
https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc#newcode431 components/exo/surface.cc:431: needs_commit_to_new_surface_ = false; Shouldn't this always be false here ...
4 years ago (2016-12-06 23:44:49 UTC) #84
reveman
lg generally. mostly nits https://codereview.chromium.org/2493223002/diff/840001/components/exo/compositor_frame_sink.cc File components/exo/compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/840001/components/exo/compositor_frame_sink.cc#newcode69 components/exo/compositor_frame_sink.cc:69: // ExoComopositorFrameSink, private: nit: "cc::CompositorFrameSinkSupportClient ...
4 years ago (2016-12-07 00:46:58 UTC) #85
Fady Samuel
https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc#newcode766 components/exo/surface.cc:766: ->SubmitCompositorFrame(local_frame_id_, std::move(frame)); On 2016/12/06 23:44:49, jbauman wrote: > Does ...
4 years ago (2016-12-07 13:54:32 UTC) #86
Fady Samuel
https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc#newcode444 components/exo/surface.cc:444: base::Bind( On 2016/12/06 23:44:49, jbauman wrote: > Are we ...
4 years ago (2016-12-07 14:34:04 UTC) #87
reveman
On 2016/12/07 at 13:54:32, fsamuel wrote: > https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc > File components/exo/surface.cc (right): > > https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc#newcode766 ...
4 years ago (2016-12-07 16:30:32 UTC) #88
Alex Z.
https://codereview.chromium.org/2493223002/diff/840001/components/exo/compositor_frame_sink.cc File components/exo/compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/840001/components/exo/compositor_frame_sink.cc#newcode69 components/exo/compositor_frame_sink.cc:69: // ExoComopositorFrameSink, private: On 2016/12/07 00:46:56, reveman wrote: > ...
4 years ago (2016-12-07 20:09:36 UTC) #89
Fady Samuel
https://codereview.chromium.org/2493223002/diff/860001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2493223002/diff/860001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode49 cc/ipc/mojo_compositor_frame_sink.mojom:49: // surface associated with the provided |local_frame_id|.addressed comments nit: ...
4 years ago (2016-12-07 20:13:00 UTC) #90
Fady Samuel
https://codereview.chromium.org/2493223002/diff/880001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/880001/components/exo/compositor_frame_sink_holder.cc#newcode41 components/exo/compositor_frame_sink_holder.cc:41: *frame_callbacks); UpdateNeedsBeginFrame after this line?
4 years ago (2016-12-07 20:27:16 UTC) #91
Alex Z.
https://codereview.chromium.org/2493223002/diff/880001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/880001/components/exo/compositor_frame_sink_holder.cc#newcode41 components/exo/compositor_frame_sink_holder.cc:41: *frame_callbacks); On 2016/12/07 20:27:16, Fady Samuel wrote: > UpdateNeedsBeginFrame ...
4 years ago (2016-12-07 20:33:02 UTC) #92
Fady Samuel
https://codereview.chromium.org/2493223002/diff/900001/components/exo/surface.h File components/exo/surface.h (right): https://codereview.chromium.org/2493223002/diff/900001/components/exo/surface.h#newcode324 components/exo/surface.h:324: base::WeakPtr<cc::SurfaceFactory> surface_factory_; Delete this?
4 years ago (2016-12-07 20:35:23 UTC) #93
jbauman
On 2016/12/07 13:54:32, Fady Samuel wrote: > https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc > File components/exo/surface.cc (right): > > https://codereview.chromium.org/2493223002/diff/840001/components/exo/surface.cc#newcode766 ...
4 years ago (2016-12-07 20:55:40 UTC) #98
Alex Z.
https://codereview.chromium.org/2493223002/diff/80001/components/exo/exo_compositor_frame_sink.cc File components/exo/exo_compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/80001/components/exo/exo_compositor_frame_sink.cc#newcode56 components/exo/exo_compositor_frame_sink.cc:56: if (!local_frame_id_.is_valid() /* || needs_commit_to_new_surface_*/) { On 2016/11/15 23:19:46, ...
4 years ago (2016-12-07 21:13:44 UTC) #101
reveman
https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink_holder.cc#newcode74 components/exo/compositor_frame_sink_holder.cc:74: scoped_refptr<CompositorFrameSinkHolder> holder(this); I haven't seen this pattern used elsewhere ...
4 years ago (2016-12-07 22:13:37 UTC) #104
Fady Samuel
https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink.cc File components/exo/compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink.cc#newcode26 components/exo/compositor_frame_sink.cc:26: compositor_frame_sink->binding_ = This is really weird. Anyhow, I would ...
4 years ago (2016-12-08 13:16:57 UTC) #105
Alex Z.
https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink.cc File components/exo/compositor_frame_sink.cc (right): https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink.cc#newcode26 components/exo/compositor_frame_sink.cc:26: compositor_frame_sink->binding_ = On 2016/12/08 13:16:56, Fady Samuel wrote: > ...
4 years ago (2016-12-09 16:16:27 UTC) #107
Fady Samuel
https://codereview.chromium.org/2493223002/diff/980001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/980001/components/exo/compositor_frame_sink_holder.cc#newcode22 components/exo/compositor_frame_sink_holder.cc:22: mojo_compositor_frame_sink_(std::move(mojo_compositor_frame_sink)), Remove this. It's weird to have a lingering ...
4 years ago (2016-12-09 16:29:19 UTC) #109
reveman
lgtm after explaining why it's now safe to access release_callbacks_ after running the callback https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink_holder.cc ...
4 years ago (2016-12-09 16:33:59 UTC) #110
Alex Z.
https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink_holder.cc File components/exo/compositor_frame_sink_holder.cc (right): https://codereview.chromium.org/2493223002/diff/960001/components/exo/compositor_frame_sink_holder.cc#newcode74 components/exo/compositor_frame_sink_holder.cc:74: scoped_refptr<CompositorFrameSinkHolder> holder(this); On 2016/12/09 16:33:59, reveman wrote: > On ...
4 years ago (2016-12-09 19:47:11 UTC) #111
Alex Z.
sky@chromium.org: Please review changes in ash_test_helper.cc and added dependency in BUILD.gn and DEPS files.
4 years ago (2016-12-09 19:49:45 UTC) #113
sky
LGTM
4 years ago (2016-12-09 21:41:55 UTC) #114
Fady Samuel
Please update the CL description to better represent your final changes.
4 years ago (2016-12-09 21:46:52 UTC) #115
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/2493223002/1050001
4 years ago (2016-12-09 22:14:30 UTC) #121
commit-bot: I haz the power
Committed patchset #54 (id:1050001)
4 years ago (2016-12-10 01:01:44 UTC) #124
sadrul
A revert of this CL (patchset #54 id:1050001) has been created in https://codereview.chromium.org/2566813002/ by sadrul@chromium.org. ...
4 years ago (2016-12-10 04:45:02 UTC) #125
sadrul
On 2016/12/10 04:45:02, sadrul wrote: > A revert of this CL (patchset #54 id:1050001) has ...
4 years ago (2016-12-10 04:46:23 UTC) #126
sadrul
https://codereview.chromium.org/2493223002/diff/1050001/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc File chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc (right): https://codereview.chromium.org/2493223002/diff/1050001/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc#newcode48 chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc:48: I think you need to override TearDown() here: void ...
4 years ago (2016-12-10 05:04:43 UTC) #128
Alex Z.
https://codereview.chromium.org/2493223002/diff/1050001/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc File chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc (right): https://codereview.chromium.org/2493223002/diff/1050001/chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc#newcode48 chrome/browser/media/webrtc/desktop_media_list_ash_unittest.cc:48: On 2016/12/10 05:04:43, sadrul wrote: > I think you ...
4 years ago (2016-12-10 14:03:39 UTC) #129
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/2493223002/1070001
4 years ago (2016-12-10 22:53:08 UTC) #141
commit-bot: I haz the power
Committed patchset #55 (id:1070001)
4 years ago (2016-12-10 23:50:00 UTC) #144
yhirano
A revert of this CL (patchset #55 id:1070001) has been created in https://codereview.chromium.org/2562263002/ by yhirano@chromium.org. ...
4 years ago (2016-12-12 02:16:24 UTC) #145
commit-bot: I haz the power
Patchset 55 (id:??) landed as https://crrev.com/f9fcdd795898705903130024a995ae6fc644ecde Cr-Commit-Position: refs/heads/master@{#437705}
4 years ago (2016-12-12 14:58:57 UTC) #147
commit-bot: I haz the power
4 years ago (2016-12-12 15:07:30 UTC) #149
Message was sent while issue was closed.
Patchset 55 (id:??) landed as
https://crrev.com/d8f4f642d72fc5fdb428f5a90ca207c2143a6f79
Cr-Commit-Position: refs/heads/master@{#437780}

Powered by Google App Engine
This is Rietveld 408576698