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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller_event_handler.h

Issue 2045813003: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 30 matching lines...) Expand all
41 const gfx::Size& size, 41 const gfx::Size& size,
42 int buffer_id) = 0; 42 int buffer_id) = 0;
43 43
44 // A previously created buffer has been freed and will no longer be used. 44 // A previously created buffer has been freed and will no longer be used.
45 virtual void OnBufferDestroyed(VideoCaptureControllerID id, 45 virtual void OnBufferDestroyed(VideoCaptureControllerID id,
46 int buffer_id) = 0; 46 int buffer_id) = 0;
47 47
48 // A buffer has been filled with a captured VideoFrame. 48 // A buffer has been filled with a captured VideoFrame.
49 virtual void OnBufferReady(VideoCaptureControllerID id, 49 virtual void OnBufferReady(VideoCaptureControllerID id,
50 int buffer_id, 50 int buffer_id,
51 const scoped_refptr<media::VideoFrame>& frame, 51 const scoped_refptr<media::VideoFrame>& frame) = 0;
52 const base::TimeTicks& timestamp) = 0;
53 52
54 // The capture session has ended and no more frames will be sent. 53 // The capture session has ended and no more frames will be sent.
55 virtual void OnEnded(VideoCaptureControllerID id) = 0; 54 virtual void OnEnded(VideoCaptureControllerID id) = 0;
56 55
57 protected: 56 protected:
58 virtual ~VideoCaptureControllerEventHandler() {} 57 virtual ~VideoCaptureControllerEventHandler() {}
59 }; 58 };
60 59
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ 62 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698