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

Side by Side Diff: remoting/client/plugin/pepper_video_renderer_2d.cc

Issue 2101833002: [Remoting Android] DisplayUpdaterFactory cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 #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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698