diff options
| author | Romain Guy <romainguy@google.com> | 2010-08-03 18:05:47 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-08-04 10:55:46 -0700 |
| commit | 529b60a3b16ac3dff24f2403d760ab8ebc9670ff (patch) | |
| tree | 81415ba149de613a165d94210938755982951017 /core/java/android/app/Activity.java | |
| parent | cf9a44cdf3647c8b31499ad6250f63259c0e34e2 (diff) | |
Add android:hardwareAccelerated to Activity.
Hardware acceleration can now be enabled/disabled locally on each activity
declared in the manifest. It can also be enabled/disabled directly on a
window through the WindowManager.LayoutParams.
Change-Id: I91dd0b26c4e7eb8cd7288e523ed6b7bda6d0990b
Diffstat (limited to 'core/java/android/app/Activity.java')
| -rw-r--r-- | core/java/android/app/Activity.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index e3351b05ee03..4b312ec0c61c 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -4123,7 +4123,7 @@ public class Activity extends ContextThemeWrapper mWindow.setSoftInputMode(info.softInputMode); } mUiThread = Thread.currentThread(); - + mMainThread = aThread; mInstrumentation = instr; mToken = token; @@ -4137,7 +4137,8 @@ public class Activity extends ContextThemeWrapper mEmbeddedID = id; mLastNonConfigurationInstances = lastNonConfigurationInstances; - mWindow.setWindowManager(null, mToken, mComponent.flattenToString()); + mWindow.setWindowManager(null, mToken, mComponent.flattenToString(), + (info.flags & ActivityInfo.FLAG_HARDWARE_ACCELERATED) != 0); if (mParent != null) { mWindow.setContainer(mParent.getWindow()); } |
