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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/RenderData.java

Issue 2484743003: Fix screen flicker when resizing CRD window in split-screen mode (Closed)
Patch Set: Fixing some comments before the review. Created 4 years, 1 month 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 package org.chromium.chromoting; 5 package org.chromium.chromoting;
6 6
7 import android.graphics.Matrix; 7 import android.graphics.Matrix;
8 import android.graphics.PointF; 8 import android.graphics.PointF;
9 9
10 /** 10 /**
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 mCursorPosition.x = newX; 50 mCursorPosition.x = newX;
51 cursorMoved = true; 51 cursorMoved = true;
52 } 52 }
53 if (newY != mCursorPosition.y) { 53 if (newY != mCursorPosition.y) {
54 mCursorPosition.y = newY; 54 mCursorPosition.y = newY;
55 cursorMoved = true; 55 cursorMoved = true;
56 } 56 }
57 57
58 return cursorMoved; 58 return cursorMoved;
59 } 59 }
60
61 /**
62 * Indicates whether all information required to render the canvas has been set.
63 *
64 * @return True if both screen and image dimensions have been set.
65 */
66 public boolean initialized() {
67 return imageWidth != 0 && imageHeight != 0 && screenWidth != 0 && screen Height != 0;
68 }
60 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698