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. 4 5package org.chromium.chromoting; 6 7import android.graphics.Matrix; 8import android.graphics.Point; 9 10/** 11 * This class stores data that needs to be accessed on both the display thread and the 12 * event-processing thread. 13 */ 14public class RenderData { 15 /** Stores pan and zoom configuration and converts image coordinates to screen coordinates. */ 16 public Matrix transform = new Matrix(); 17 18 public int screenWidth = 0; 19 public int screenHeight = 0; 20 public int imageWidth = 0; 21 public int imageHeight = 0; 22 23 /** 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. 26 */ 27 public Point cursorPosition = new Point(); 28} 29