Adding SatisfySequence and RequireSequence to SurfaceManager |
||||
Issue descriptionThere is a lot of identical code throughout the codebase for requiring / satisfying surface sequences. https://cs.chromium.org/search/?q=%22Attempting+to+require+callback+on+nonexistent+surface%22&sq=package:chromium&type=cs I suggest adding RequireSequence(surface_id, sequence) and SatisfySequence(sequence) to SurfaceManager to replace the duplicate code. Also, now that satisfies_sequences in CompositorFrameMetadata is gone, there is absolutely no reason for DidSatisfySequence to take a vector of sequences as opposed to one. So once we have SatisfySequence, DidSatisfySequence should go away.
,
Jan 10 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1221800150ab0969c63166809616392db5a02729 commit 1221800150ab0969c63166809616392db5a02729 Author: samans <samans@chromium.org> Date: Tue Jan 10 03:10:42 2017 Adding SatisfySequence and RequireSequence to SurfaceManager Now that satisfies_sequences in CompositorFrameMetadata is gone, there is absolutely no reason for SurfaceManager::DidSatisfySequences to take a vector of sequences as opposed to one. This CL replaces DidSatisfySequence with SatisfySequence and also creates SurfaceManager::RequireSequence which helps remove duplicate code throughout the code base. TBR=piman@chromium.org BUG= 675054 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2614423003 Cr-Commit-Position: refs/heads/master@{#442461} [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/cc/surfaces/compositor_frame_sink_support.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/cc/surfaces/direct_surface_reference_factory.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/cc/surfaces/surface_factory_unittest.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/cc/surfaces/surface_manager.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/cc/surfaces/surface_manager.h [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/cc/surfaces/surface_manager_ref_unittest.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/content/browser/browser_plugin/browser_plugin_guest.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/content/browser/frame_host/cross_process_frame_connector.cc [modify] https://crrev.com/1221800150ab0969c63166809616392db5a02729/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
,
Jan 16 2017
,
Jun 13 2017
,
Feb 26 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by fsam...@chromium.org
, Dec 24 2016Components: Internals>MUS
Labels: Proj-Mustash-Mus displaycompositor Proj-Mustash-Mus-GPU