diff options
author | Jayant Chowdhary <jchowdhary@google.com> | 2019-03-18 21:28:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-03-18 21:28:19 +0000 |
commit | ddd824152b76dc16c137d63937f38ac4cd4409ea (patch) | |
tree | f87c3cc7a7f18ae69469e11a0060391405679e61 /libs/gui/include | |
parent | f3e56ffce9e19c719f04f5475572875e1e747a10 (diff) | |
parent | ad9fe277ea967b27ce7b748bc51ff15ff011f488 (diff) | |
download | android_frameworks_native-ddd824152b76dc16c137d63937f38ac4cd4409ea.tar.gz android_frameworks_native-ddd824152b76dc16c137d63937f38ac4cd4409ea.tar.bz2 android_frameworks_native-ddd824152b76dc16c137d63937f38ac4cd4409ea.zip |
Merge "BufferQueueProducer: use the correct IPCThreadState."
Diffstat (limited to 'libs/gui/include')
-rw-r--r-- | libs/gui/include/private/gui/BufferQueueThreadState.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/gui/include/private/gui/BufferQueueThreadState.h b/libs/gui/include/private/gui/BufferQueueThreadState.h new file mode 100644 index 000000000..67dcf621c --- /dev/null +++ b/libs/gui/include/private/gui/BufferQueueThreadState.h @@ -0,0 +1,30 @@ +/* + * Copyright 2019 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. + */ + +#include <stdint.h> +#include <sys/types.h> +#include <unistd.h> + +namespace android { + +// TODO: Replace this with b/127962003 +class BufferQueueThreadState { +public: + static pid_t getCallingPid(); + static uid_t getCallingUid(); +}; + +} // namespace android |