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

Side by Side Diff: remoting/client/jni/display_updater_factory.h

Issue 2338473002: [Remoting Android] JniGlDisplayHandler calls invalidate() on UI thread (Closed)
Patch Set: Reviewer's Feedback Created 4 years, 2 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
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | remoting/client/jni/jni_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_
6 #define REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11
12 namespace remoting {
13
14 namespace protocol {
15 class CursorShapeStub;
16 class VideoRenderer;
17 } // namespace protocol
18
19 // Interface for creating objects to update image (desktop frame or cursor
20 // shape) to display. Factory functions can be called on any thread but the
21 // returned object should be used on the network thread.
22 class DisplayUpdaterFactory {
23 public:
24 virtual ~DisplayUpdaterFactory() {}
25
26 virtual std::unique_ptr<protocol::CursorShapeStub>
27 CreateCursorShapeStub() = 0;
28 virtual std::unique_ptr<protocol::VideoRenderer> CreateVideoRenderer() = 0;
29
30 protected:
31 DisplayUpdaterFactory() {}
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(DisplayUpdaterFactory);
35 };
36
37 } // namespace remoting
38
39 #endif // REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | remoting/client/jni/jni_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698