diff options
author | Tracy Zhou <tracyzhou@google.com> | 2020-03-06 16:22:50 -0800 |
---|---|---|
committer | Tracy Zhou <tracyzhou@google.com> | 2020-03-12 23:06:36 -0700 |
commit | 85f0c3b841515aa9686f71abfcb23b841d46719d (patch) | |
tree | ffc687956e71d66e066cc58588d4cba2548f565f /src_ui_overrides | |
parent | 6d8203ef4495f9550999f483f7c9822316b29971 (diff) | |
download | Launcher3-85f0c3b841515aa9686f71abfcb23b841d46719d.tar.gz |
Use SurfaceView to render grid preview
Demo: https://drive.google.com/open?id=1wQ8dT5bfTxSh-NRQpNBwTCkKOtOOUMPj
Bug: 150224413
Test: Manual
Change-Id: I44e7baed1bcd15351e03dcbeb2b525bc1b325478
Diffstat (limited to 'src_ui_overrides')
-rw-r--r-- | src_ui_overrides/com/android/launcher3/uioverrides/PreviewSurfaceRenderer.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src_ui_overrides/com/android/launcher3/uioverrides/PreviewSurfaceRenderer.java b/src_ui_overrides/com/android/launcher3/uioverrides/PreviewSurfaceRenderer.java new file mode 100644 index 0000000000..4913cadb5a --- /dev/null +++ b/src_ui_overrides/com/android/launcher3/uioverrides/PreviewSurfaceRenderer.java @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2020 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.launcher3.uioverrides; + +import android.content.Context; +import android.os.Bundle; + +/** Render preview using surface view. */ +public class PreviewSurfaceRenderer { + + /** Handle a received surface view request. */ + public static void render(Context context, Bundle bundle) { } +} |