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
3 // found in the LICENSE file.
5 package org
.chromium
.chromoting
;
7 import android
.graphics
.Matrix
;
8 import android
.graphics
.Point
;
11 * This class stores data that needs to be accessed on both the display thread and the
12 * event-processing thread.
14 public class RenderData
{
15 /** Stores pan and zoom configuration and converts image coordinates to screen coordinates. */
16 public Matrix transform
= new Matrix();
18 public int screenWidth
= 0;
19 public int screenHeight
= 0;
20 public int imageWidth
= 0;
21 public int imageHeight
= 0;
24 * Specifies the position, in image coordinates, at which the cursor image will be drawn.
25 * This will normally be at the location of the most recently injected motion event.
27 public Point cursorPosition
= new Point();