DescriptionExtract nested and private classes from VideoCaptureBufferPool
This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.6.2.
This CL is a step towards being able to reuse the classes VideoCaptureDeviceClient
and VideoCaptureBufferPool as part of the Video Capture Mojo Service, because they
implement functionality that is needed there. Expressed in class-diagram form, we
want to realize the cut indicated by the red line in [2].
Currently, the classes VideoCaptureDeviceClient and VideoCaptureBufferPool live in
content/browser/renderer_host/media. Even though their functionality is not specific
to renderer_host, their dependencies create a tight coupling to code that is. In order
to use them in services/video_capture, we need to move them out of there (and probably
into media/capture/video).
In this CL we move the nested and private classes from video_capture_buffer_pool.h/cc
into stand-alone classes using separate files. After this separation, we will be able to
move the parts that do not depend on content/browser/renderer_host/media to
media/capture/video and keep the other parts where they are.
Additional changes:
* Rename interface VideoCaptureBufferPoolBufferHandle to VideoCaptureBufferHandle
Note: Code in new file comes from either video_capture_buffer_pool.h or .cc.
No additions or modifications oder than the required includes and guards.
BUG=584797
TEST=This is a pure refactoring. No new functionality. content_unittests still pass.
[1] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing
[2] https://docs.google.com/drawings/d/1acJSbj8eCK5Lpvv9QPiU_V34t8GfgqfYSoYbA93jb5o/edit
Committed: https://crrev.com/71238feb8a373499b95a8b78572c81a456a37106
Cr-Commit-Position: refs/heads/master@{#420475}
Patch Set 1 #
Total comments: 10
Patch Set 2 : mcasas' comments #Patch Set 3 : Add mcasas@ as owner for extraced code #Patch Set 4 : Merge branch 'master' into BufferPoolRefactor #Dependent Patchsets: Messages
Total messages: 28 (19 generated)
|