Skip to content

Commit 0500b3c

Browse files
author
Dianne Hackborn
committed
Some optimizations.
- Don't try to create a thumbnail bitmap on the client side. This wastes 64k, and isn't needed since we are doing screenshots. - Optimize View to put all of the callback pointers out of line. Added a couple new APIs so these don't need to be protected/public. - Lazily create ViewGroup's cache paint. - Change FrameworkPerf app to not use HW accel drawing, to give better comparison with GB. Change-Id: Iec56d02459820d74a4cc9c7ec9c1856563c82c7b
1 parent f136aa3 commit 0500b3c

File tree

9 files changed

+196
-107
lines changed

9 files changed

+196
-107
lines changed

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22849,6 +22849,7 @@ package android.view {
2284922849
method public void buildDrawingCache();
2285022850
method public void buildDrawingCache(boolean);
2285122851
method public void buildLayer();
22852+
method public boolean callOnClick();
2285222853
method public boolean canScrollHorizontally(int);
2285322854
method public boolean canScrollVertically(int);
2285422855
method public void cancelLongPress();
@@ -23000,6 +23001,7 @@ package android.view {
2300023001
method public float getY();
2300123002
method public boolean hasFocus();
2300223003
method public boolean hasFocusable();
23004+
method public boolean hasOnClickListeners();
2300323005
method public boolean hasWindowFocus();
2300423006
method public static android.view.View inflate(android.content.Context, int, android.view.ViewGroup);
2300523007
method protected void initializeFadingEdge(android.content.res.TypedArray);

core/java/android/app/ActivityThread.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,9 @@ private void performStopActivityInner(ActivityClientRecord r,
27692769
if (info != null) {
27702770
try {
27712771
// First create a thumbnail for the activity...
2772-
info.thumbnail = createThumbnailBitmap(r);
2772+
// For now, don't create the thumbnail here; we are
2773+
// doing that by doing a screen snapshot.
2774+
info.thumbnail = null; //createThumbnailBitmap(r);
27732775
info.description = r.activity.onCreateDescription();
27742776
} catch (Exception e) {
27752777
if (!mInstrumentation.onException(r.activity, e)) {

0 commit comments

Comments
 (0)