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

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

Issue 2032963002: WIP - OpenGL Native Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into gl Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ 5 #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_
6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ 6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // The runtime itself will not send out any logs. Used on the network thread. 55 // The runtime itself will not send out any logs. Used on the network thread.
56 ClientTelemetryLogger* logger() { 56 ClientTelemetryLogger* logger() {
57 DCHECK(runtime_->network_task_runner()->BelongsToCurrentThread()); 57 DCHECK(runtime_->network_task_runner()->BelongsToCurrentThread());
58 DCHECK(logger_); 58 DCHECK(logger_);
59 return logger_.get(); 59 return logger_.get();
60 } 60 }
61 61
62 // Fetch OAuth token for the telemetry logger. Call on UI thread. 62 // Fetch OAuth token for the telemetry logger. Call on UI thread.
63 void FetchAuthToken(); 63 void FetchAuthToken();
64 64
65 bool use_opengl_ = true;
66
65 private: 67 private:
66 ChromotingJniRuntime(); 68 ChromotingJniRuntime();
67 69
68 // Forces a DisconnectFromHost() in case there is any active or failed 70 // Forces a DisconnectFromHost() in case there is any active or failed
69 // connection, then proceeds to tear down the Chromium dependencies on which 71 // connection, then proceeds to tear down the Chromium dependencies on which
70 // all sessions depended. Because destruction only occurs at application exit 72 // all sessions depended. Because destruction only occurs at application exit
71 // after all connections have terminated, it is safe to make unretained 73 // after all connections have terminated, it is safe to make unretained
72 // cross-thread calls on the class. 74 // cross-thread calls on the class.
73 virtual ~ChromotingJniRuntime(); 75 virtual ~ChromotingJniRuntime();
74 76
(...skipping 15 matching lines...) Expand all
90 std::unique_ptr<ClientTelemetryLogger> logger_; 92 std::unique_ptr<ClientTelemetryLogger> logger_;
91 93
92 friend struct base::DefaultSingletonTraits<ChromotingJniRuntime>; 94 friend struct base::DefaultSingletonTraits<ChromotingJniRuntime>;
93 95
94 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime); 96 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime);
95 }; 97 };
96 98
97 } // namespace remoting 99 } // namespace remoting
98 100
99 #endif 101 #endif
OLDNEW
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java ('k') | remoting/client/jni/chromoting_jni_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698