| OLD | NEW | 
|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_ORACLE_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_VIDEO_CAPTURE_ORACLE_H_ | 
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_ORACLE_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_VIDEO_CAPTURE_ORACLE_H_ | 
| 7 | 7 | 
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" | 
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" | 
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" | 
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" | 
| 12 | 12 | 
| 13 namespace content { | 13 namespace content { | 
| 14 | 14 | 
| 15 // Filters a sequence of events to achieve a target frequency. | 15 // Filters a sequence of events to achieve a target frequency. | 
| 16 class CONTENT_EXPORT SmoothEventSampler { | 16 class CONTENT_EXPORT SmoothEventSampler { | 
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95 | 95 | 
| 96   // Stores the timestamp of the last delivered frame. | 96   // Stores the timestamp of the last delivered frame. | 
| 97   base::TimeTicks last_delivered_frame_timestamp_; | 97   base::TimeTicks last_delivered_frame_timestamp_; | 
| 98 | 98 | 
| 99   // Tracks present/paint history. | 99   // Tracks present/paint history. | 
| 100   SmoothEventSampler sampler_; | 100   SmoothEventSampler sampler_; | 
| 101 }; | 101 }; | 
| 102 | 102 | 
| 103 }  // namespace content | 103 }  // namespace content | 
| 104 | 104 | 
| 105 #endif  // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_ORACLE_H_ | 105 #endif  // CONTENT_BROWSER_MEDIA_CAPTURE_VIDEO_CAPTURE_ORACLE_H_ | 
| OLD | NEW | 
|---|