diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-07-09 17:05:23 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-09 17:05:23 -0700 |
commit | 8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96 (patch) | |
tree | 9d91e1020e2f75baf83cd9b9b4934c81fe7025d6 /native/android/native_activity.cpp | |
parent | 3a70b20ee5aa2c0d451f1d2a5701bf9c43c8ca6f (diff) | |
parent | b14f325a0118ffce286155caaabaae149653462c (diff) | |
download | frameworks_base-8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96.zip frameworks_base-8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96.tar.gz frameworks_base-8445ca6c3ba9b7cee6d20f5919e3b3ba8e6b8c96.tar.bz2 |
am b14f325a: am 289b9b62: Add ANativeWindow API for directly drawing to the surface bits.
Merge commit 'b14f325a0118ffce286155caaabaae149653462c'
* commit 'b14f325a0118ffce286155caaabaae149653462c':
Add ANativeWindow API for directly drawing to the surface bits.
Diffstat (limited to 'native/android/native_activity.cpp')
-rw-r--r-- | native/android/native_activity.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/native/android/native_activity.cpp b/native/android/native_activity.cpp new file mode 100644 index 0000000..509cc33 --- /dev/null +++ b/native/android/native_activity.cpp @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2010 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. + */ + +#define LOG_TAG "native_activity" +#include <utils/Log.h> + +#include <android_runtime/android_app_NativeActivity.h> + +using namespace android; + +void ANativeActivity_setWindowFormat(ANativeActivity* activity, int32_t format) { + android_NativeActivity_setWindowFormat(activity, format); +} + +void ANativeActivity_setWindowFlags(ANativeActivity* activity, + uint32_t addFlags, uint32_t removeFlags) { + android_NativeActivity_setWindowFlags(activity, addFlags, addFlags|removeFlags); +} |