video_capture_buffer_tracker_factory_impl.h 940 B

123456789101112131415161718192021222324252627
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_IMPL_H_
  5. #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_IMPL_H_
  6. #include <memory>
  7. #include "media/capture/capture_export.h"
  8. #include "media/capture/video/video_capture_buffer_tracker_factory.h"
  9. namespace media {
  10. class CAPTURE_EXPORT VideoCaptureBufferTrackerFactoryImpl
  11. : public VideoCaptureBufferTrackerFactory {
  12. public:
  13. std::unique_ptr<VideoCaptureBufferTracker> CreateTracker(
  14. VideoCaptureBufferType buffer_type) override;
  15. std::unique_ptr<VideoCaptureBufferTracker>
  16. CreateTrackerForExternalGpuMemoryBuffer(
  17. const gfx::GpuMemoryBufferHandle& handle) override;
  18. };
  19. } // namespace media
  20. #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_IMPL_H_