| 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 #include "content/browser/renderer_host/media/video_capture_oracle.h" | 5 #include "content/browser/media/capture/video_capture_oracle.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 // This value controls how many redundant, timer-base captures occur when the | 13 // This value controls how many redundant, timer-base captures occur when the |
| 14 // content is static. Redundantly capturing the same frame allows iterative | 14 // content is static. Redundantly capturing the same frame allows iterative |
| 15 // quality enhancement, and also allows the buffer to fill in "buffered mode". | 15 // quality enhancement, and also allows the buffer to fill in "buffered mode". |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return false; | 161 return false; |
| 162 else | 162 else |
| 163 return true; | 163 return true; |
| 164 } | 164 } |
| 165 | 165 |
| 166 bool SmoothEventSampler::HasUnrecordedEvent() const { | 166 bool SmoothEventSampler::HasUnrecordedEvent() const { |
| 167 return !current_event_.is_null() && current_event_ != last_sample_; | 167 return !current_event_.is_null() && current_event_ != last_sample_; |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace content | 170 } // namespace content |
| OLD | NEW |