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
media / capture / video / video_capture_buffer_tracker_factory.h [blame]
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_H_
#define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_H_
#include <memory>
#include "media/capture/capture_export.h"
#include "media/capture/video_capture_types.h"
namespace gfx {
struct GpuMemoryBufferHandle;
} // namespace gfx
namespace media {
class VideoCaptureBufferTracker;
class CAPTURE_EXPORT VideoCaptureBufferTrackerFactory {
public:
virtual ~VideoCaptureBufferTrackerFactory() {}
virtual std::unique_ptr<VideoCaptureBufferTracker> CreateTracker(
VideoCaptureBufferType buffer_type) = 0;
virtual std::unique_ptr<VideoCaptureBufferTracker>
CreateTrackerForExternalGpuMemoryBuffer(
gfx::GpuMemoryBufferHandle handle) = 0;
};
} // namespace media
#endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_BUFFER_TRACKER_FACTORY_H_