blob: c9e43c52b91164669632dda8057c7094778e8bd7 [file] [log] [blame]
Jorim Jaggi02886a82016-12-06 09:10:06 -08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
15 */
16
17package com.android.server.wm;
18
Jorim Jaggi30d64f32017-04-07 16:33:17 +020019import android.app.ActivityManager.TaskSnapshot;
Adrian Roose99bc052017-11-20 17:55:31 +010020
21import com.android.server.policy.WindowManagerPolicy.StartingSurface;
Jorim Jaggi02886a82016-12-06 09:10:06 -080022
23/**
24 * Represents starting data for snapshot starting windows.
25 */
26class SnapshotStartingData extends StartingData {
27
28 private final WindowManagerService mService;
Jorim Jaggi30d64f32017-04-07 16:33:17 +020029 private final TaskSnapshot mSnapshot;
Jorim Jaggi02886a82016-12-06 09:10:06 -080030
Jorim Jaggi30d64f32017-04-07 16:33:17 +020031 SnapshotStartingData(WindowManagerService service, TaskSnapshot snapshot) {
Jorim Jaggie09fc6b2017-01-19 15:33:36 +010032 super(service);
Jorim Jaggi02886a82016-12-06 09:10:06 -080033 mService = service;
34 mSnapshot = snapshot;
35 }
36
37 @Override
Jorim Jaggie09fc6b2017-01-19 15:33:36 +010038 StartingSurface createStartingSurface(AppWindowToken atoken) {
39 return mService.mTaskSnapshotController.createStartingSurface(atoken, mSnapshot);
Jorim Jaggi02886a82016-12-06 09:10:06 -080040 }
41}