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

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

Issue 2338473002: [Remoting Android] JniGlDisplayHandler calls invalidate() on UI thread (Closed)
Patch Set: Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 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 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 REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ 5 #ifndef REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_
6 #define REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ 6 #define REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 namespace protocol { 14 namespace protocol {
15 class CursorShapeStub; 15 class CursorShapeStub;
16 class VideoRenderer; 16 class VideoRenderer;
17 } // namespace protocol 17 } // namespace protocol
18 18
19 // Interface for creating objects to update image (desktop frame or cursor 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 20 // shape) to display. Factory functions can be called on any thread but the
21 // returned object should be used on the network thread. 21 // returned object should be used on the network thread.
22 class DisplayUpdaterFactory { 22 class DisplayUpdaterFactory {
23 public: 23 public:
24 virtual ~DisplayUpdaterFactory() {} 24 virtual ~DisplayUpdaterFactory() {}
Yuwei 2016/09/12 20:49:06 Tried to make this protected but `display_handler_
25 25
26 virtual std::unique_ptr<protocol::CursorShapeStub> 26 virtual std::unique_ptr<protocol::CursorShapeStub>
27 CreateCursorShapeStub() = 0; 27 CreateCursorShapeStub() = 0;
28 virtual std::unique_ptr<protocol::VideoRenderer> CreateVideoRenderer() = 0; 28 virtual std::unique_ptr<protocol::VideoRenderer> CreateVideoRenderer() = 0;
29 virtual void Destroy() = 0;
29 30
30 protected: 31 protected:
31 DisplayUpdaterFactory() {} 32 DisplayUpdaterFactory() {}
32 33
33 private: 34 private:
34 DISALLOW_COPY_AND_ASSIGN(DisplayUpdaterFactory); 35 DISALLOW_COPY_AND_ASSIGN(DisplayUpdaterFactory);
35 }; 36 };
36 37
37 } // namespace remoting 38 } // namespace remoting
38 39
39 #endif // REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_ 40 #endif // REMOTING_CLIENT_JNI_DISPLAY_UPDATER_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/jni/GlDisplay.java ('k') | remoting/client/jni/jni_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698