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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/DesktopView.java

Issue 2007123003: [Android Client] Break down multi-threaded classes by thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename JniSecretFetcher to JniPairingSecretFetcher Created 4 years, 7 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/android/java/src/org/chromium/chromoting/DesktopView.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/DesktopView.java b/remoting/android/java/src/org/chromium/chromoting/DesktopView.java
index e79065d3307e349bd34f73662266f5140b33aa9a..844e98107a4b809770c9ecff43fdfab881b57fe0 100644
--- a/remoting/android/java/src/org/chromium/chromoting/DesktopView.java
+++ b/remoting/android/java/src/org/chromium/chromoting/DesktopView.java
@@ -200,7 +200,7 @@ public class DesktopView extends SurfaceView implements DesktopViewInterface,
}
mRepaintPending = true;
}
- mClient.redrawGraphics();
+ mClient.getDisplay().redrawGraphics();
}
/**
@@ -215,7 +215,7 @@ public class DesktopView extends SurfaceView implements DesktopViewInterface,
Log.w(TAG, "Canvas being redrawn on UI thread");
}
- Bitmap image = mClient.getVideoFrame();
+ Bitmap image = mClient.getDisplay().getVideoFrame();
if (image == null) {
// This can happen if the client is connected, but a complete video frame has not yet
// been decoded.
@@ -274,9 +274,9 @@ public class DesktopView extends SurfaceView implements DesktopViewInterface,
}
if (drawCursor) {
- Bitmap cursorBitmap = mClient.getCursorBitmap();
+ Bitmap cursorBitmap = mClient.getDisplay().getCursorBitmap();
if (cursorBitmap != null) {
- Point hotspot = mClient.getCursorHotspot();
+ Point hotspot = mClient.getDisplay().getCursorHotspot();
canvas.drawBitmap(cursorBitmap, cursorPosition.x - hotspot.x,
cursorPosition.y - hotspot.y, new Paint());
}
@@ -327,7 +327,7 @@ public class DesktopView extends SurfaceView implements DesktopViewInterface,
}
public void attachRedrawCallback() {
- mClient.provideRedrawCallback(new Runnable() {
+ mClient.getDisplay().provideRedrawCallback(new Runnable() {
@Override
public void run() {
paint();

Powered by Google App Engine
This is Rietveld 408576698