summaryrefslogtreecommitdiff
path: root/proto/src
diff options
context:
space:
mode:
authorPeter Kalauskas <peskal@google.com>2020-01-31 16:50:42 -0800
committerPeter Kalauskas <peskal@google.com>2020-02-24 21:01:03 +0000
commitfe0a413a609cda28740ab58e38d612206bd3dec9 (patch)
tree1a1748b95467cfae5f39a7255facb471e02b3b4b /proto/src
parent27f83cdbcefd687632811996e25ece99f7e1ac69 (diff)
Store original task width and height instead of scale
Store the original task snapshot size instead of the scale from which the bitmap was saved. This simplifies the logic around restoring and saving from the proto, as both the reduced scale and full scale snapshots make use and share the same state. Also remove scale from TaskSnapshot, and remove and reducedScale from TaskSnapshot.Builder. Test: TaskSnapshotCacheTest Test: TaskSnapshotControllerTest Test: TaskSnapshotPersisterLoaderTest Test: TaskSnapshotSurfaceTest Bug: 148491788 Bug: 148617404 Bug: 142063079 Change-Id: I1dccaba87c3d8b95bf4156f41f9fd5d40019f675
Diffstat (limited to 'proto/src')
-rw-r--r--proto/src/task_snapshot.proto7
1 files changed, 6 insertions, 1 deletions
diff --git a/proto/src/task_snapshot.proto b/proto/src/task_snapshot.proto
index 789019ce8b75..2006fb3d7bf1 100644
--- a/proto/src/task_snapshot.proto
+++ b/proto/src/task_snapshot.proto
@@ -32,7 +32,12 @@
int32 system_ui_visibility = 8;
bool is_translucent = 9;
string top_activity_component = 10;
- float scale = 11;
+ // deprecated because original width and height are stored now instead of the scale.
+ float legacy_scale = 11 [deprecated=true];
int64 id = 12;
int32 rotation = 13;
+ // The task width when the snapshot was taken
+ int32 task_width = 14;
+ // The task height when the snapshot was taken
+ int32 task_height = 15;
}