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

Unified Diff: remoting/client/jni/chromoting_jni.h

Issue 19297003: Add support for drawing video onto a Java ByteBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename to JniFrameConsumer, use WeakPtrFactory, eliminate buffer_ pointer Created 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/jni/chromoting_jni.h
diff --git a/remoting/client/jni/chromoting_jni.h b/remoting/client/jni/chromoting_jni.h
index 23df7b039e272797c110394c94d8464bb38d78a1..b9a670932a95ae8b26208927eb766318248e4a88 100644
--- a/remoting/client/jni/chromoting_jni.h
+++ b/remoting/client/jni/chromoting_jni.h
@@ -10,17 +10,17 @@
#include "base/at_exit.h"
#include "net/url_request/url_request_context_getter.h"
#include "remoting/base/auto_thread.h"
+#include "remoting/client/jni/chromoting_jni_instance.h"
#include "remoting/protocol/connection_to_host.h"
template<typename T> struct DefaultSingletonTraits;
namespace remoting {
-class ChromotingJniInstance;
// Houses the global resources on which the Chromoting components run
// (e.g. message loops and task runners). Proxies outgoing JNI calls from its
// ChromotingJniInstance member to Java. All its methods should be invoked
-// exclusively from the UI thread.
+// exclusively from the UI thread unless otherwise noted.
class ChromotingJni {
public:
// This class is instantiated at process initialization and persists until
@@ -70,6 +70,12 @@ class ChromotingJni {
// Pops up a dialog box asking the user to enter a PIN.
void DisplayAuthenticationPrompt();
+ // Updates image dimensions and canvas memory space. Call on display thread.
+ void UpdateImageBuffer(int width, int height, jobject buffer);
+
+ // Draws the latest image buffer onto the canvas. Call on the display thread.
+ void RedrawCanvas();
+
private:
ChromotingJni();

Powered by Google App Engine
This is Rietveld 408576698