aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/shared/emugl/common/scoped_pointer_vector.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-02-27 14:44:51 +0100
committerDavid 'Digit' Turner <digit@google.com>2014-03-11 18:03:08 +0100
commit0863e159faa8c8bf7c47deb92a109961e8653e52 (patch)
treea2815aa64c73aae43ab7e54e02bcc0d72bb5a316 /emulator/opengl/shared/emugl/common/scoped_pointer_vector.h
parentbfc6160fecf9af96c659ab2474098275af9f042c (diff)
downloadsdk-0863e159faa8c8bf7c47deb92a109961e8653e52.zip
sdk-0863e159faa8c8bf7c47deb92a109961e8653e52.tar.gz
sdk-0863e159faa8c8bf7c47deb92a109961e8653e52.tar.bz2
emulator/opengl: Remove android::Vector<> usage.
This remove the use of android::Vector<> by providing an alternative vector implementation (emugl::PodVector<>) which is heavily based on the emulator version under external/qemu/android/base/containers/PodVector.h. Ultimately the GPU emulation libraries will move under external/qemu/, and the code will be changed to use android::base::PodVector<> instead of emugl::PodVector<>. Change-Id: I9836ed961795c0791115c61e731d15d17f036972
Diffstat (limited to 'emulator/opengl/shared/emugl/common/scoped_pointer_vector.h')
-rw-r--r--emulator/opengl/shared/emugl/common/scoped_pointer_vector.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/emulator/opengl/shared/emugl/common/scoped_pointer_vector.h b/emulator/opengl/shared/emugl/common/scoped_pointer_vector.h
new file mode 100644
index 0000000..3d263e9
--- /dev/null
+++ b/emulator/opengl/shared/emugl/common/scoped_pointer_vector.h
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 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.
+
+#ifndef EMUGL_COMMON_SCOPED_POINTER_VECTOR_H
+#define EMUGL_COMMON_SCOPED_POINTER_VECTOR_H
+
+namespace emugl {
+
+template <class T>
+class ScopedPointerVector {
+ ScopedPointerVector
+};
+
+} // namespace emugl
+
+#endif // EMUGL_COMMON_SCOPED_POINTER_VECTOR_H