| OLD | NEW |
| 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 #include "remoting/client/plugin/pepper_video_renderer_2d.h" | 5 #include "remoting/client/plugin/pepper_video_renderer_2d.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace | 55 } // namespace |
| 56 | 56 |
| 57 PepperVideoRenderer2D::PepperVideoRenderer2D() | 57 PepperVideoRenderer2D::PepperVideoRenderer2D() |
| 58 : callback_factory_(this), | 58 : callback_factory_(this), |
| 59 weak_factory_(this) {} | 59 weak_factory_(this) {} |
| 60 | 60 |
| 61 PepperVideoRenderer2D::~PepperVideoRenderer2D() {} | 61 PepperVideoRenderer2D::~PepperVideoRenderer2D() {} |
| 62 | 62 |
| 63 bool PepperVideoRenderer2D::Initialize( | 63 bool PepperVideoRenderer2D::InitializePepper( |
| 64 pp::Instance* instance, | 64 pp::Instance* instance, |
| 65 const ClientContext& context, | 65 const ClientContext& context, |
| 66 EventHandler* event_handler, | 66 EventHandler* event_handler, |
| 67 protocol::PerformanceTracker* perf_tracker) { | 67 protocol::PerformanceTracker* perf_tracker) { |
| 68 DCHECK(thread_checker_.CalledOnValidThread()); | 68 DCHECK(thread_checker_.CalledOnValidThread()); |
| 69 DCHECK(!instance_); | 69 DCHECK(!instance_); |
| 70 DCHECK(!event_handler_); | 70 DCHECK(!event_handler_); |
| 71 DCHECK(instance); | 71 DCHECK(instance); |
| 72 DCHECK(event_handler); | 72 DCHECK(event_handler); |
| 73 | 73 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 flush_pending_ = false; | 208 flush_pending_ = false; |
| 209 | 209 |
| 210 // Call all callbacks for the frames we've just flushed. | 210 // Call all callbacks for the frames we've just flushed. |
| 211 flushing_frames_done_callbacks_.clear(); | 211 flushing_frames_done_callbacks_.clear(); |
| 212 | 212 |
| 213 // Flush again if necessary. | 213 // Flush again if necessary. |
| 214 Flush(); | 214 Flush(); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace remoting | 217 } // namespace remoting |
| OLD | NEW |