Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ANDROID_RS_CONTEXT_H |
| 18 | #define ANDROID_RS_CONTEXT_H |
| 19 | |
Jason Sams | 399bfce | 2009-07-13 12:20:31 -0700 | [diff] [blame] | 20 | #include "rsUtils.h" |
Jason Sams | c1d726c | 2010-03-18 11:39:44 -0700 | [diff] [blame] | 21 | #include "rsMutex.h" |
Jason Sams | 399bfce | 2009-07-13 12:20:31 -0700 | [diff] [blame] | 22 | |
Jason Sams | bc948de | 2009-08-17 18:35:48 -0700 | [diff] [blame] | 23 | #include "rsThreadIO.h" |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 24 | #include "rsType.h" |
| 25 | #include "rsMatrix.h" |
| 26 | #include "rsAllocation.h" |
Jason Sams | 7c878f3 | 2009-06-30 14:13:04 -0700 | [diff] [blame] | 27 | #include "rsMesh.h" |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 28 | #include "rsDevice.h" |
| 29 | #include "rsScriptC.h" |
| 30 | #include "rsAllocation.h" |
| 31 | #include "rsAdapter.h" |
| 32 | #include "rsSampler.h" |
Jason Sams | ee41112 | 2009-07-21 12:20:54 -0700 | [diff] [blame] | 33 | #include "rsLight.h" |
Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 34 | #include "rsFont.h" |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 35 | #include "rsProgramFragment.h" |
Jason Sams | 54db59c | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 36 | #include "rsProgramStore.h" |
Jason Sams | ebfb436 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 37 | #include "rsProgramRaster.h" |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 38 | #include "rsProgramVertex.h" |
Jason Sams | bb51c40 | 2009-11-25 13:22:07 -0800 | [diff] [blame] | 39 | #include "rsShaderCache.h" |
| 40 | #include "rsVertexArray.h" |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 41 | |
| 42 | #include "rsgApiStructs.h" |
| 43 | #include "rsLocklessFifo.h" |
| 44 | |
Mathias Agopian | 5cbb940 | 2010-02-12 12:00:38 -0800 | [diff] [blame] | 45 | #include <ui/egl/android_natives.h> |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 46 | |
| 47 | // --------------------------------------------------------------------------- |
| 48 | namespace android { |
Mathias Agopian | 000479f | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 49 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 50 | namespace renderscript { |
| 51 | |
Jason Sams | 9bee51c | 2009-08-05 13:57:03 -0700 | [diff] [blame] | 52 | class Context |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 53 | { |
| 54 | public: |
Jason Sams | 704ff64 | 2010-02-09 16:05:07 -0800 | [diff] [blame] | 55 | Context(Device *, bool isGraphics, bool useDepth); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 56 | ~Context(); |
| 57 | |
Jason Sams | 462d11b | 2009-06-19 16:03:18 -0700 | [diff] [blame] | 58 | static pthread_key_t gThreadTLSKey; |
Jason Sams | 41c19db9 | 2009-10-15 16:47:31 -0700 | [diff] [blame] | 59 | static uint32_t gThreadTLSKeyCount; |
Jason Sams | 7136220 | 2009-10-27 14:44:31 -0700 | [diff] [blame] | 60 | static uint32_t gGLContextCount; |
Jason Sams | 41c19db9 | 2009-10-15 16:47:31 -0700 | [diff] [blame] | 61 | static pthread_mutex_t gInitMutex; |
| 62 | |
Jason Sams | 462d11b | 2009-06-19 16:03:18 -0700 | [diff] [blame] | 63 | struct ScriptTLSStruct { |
| 64 | Context * mContext; |
| 65 | Script * mScript; |
| 66 | }; |
| 67 | |
Jason Sams | 8e6c17f | 2010-07-19 15:38:19 -0700 | [diff] [blame] | 68 | typedef void (*WorkerCallback_t)(void *usr, uint32_t idx); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 69 | |
| 70 | //StructuredAllocationContext mStateAllocation; |
| 71 | ElementState mStateElement; |
| 72 | TypeState mStateType; |
| 73 | SamplerState mStateSampler; |
| 74 | ProgramFragmentState mStateFragment; |
Jason Sams | 54db59c | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 75 | ProgramStoreState mStateFragmentStore; |
Jason Sams | ebfb436 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 76 | ProgramRasterState mStateRaster; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 77 | ProgramVertexState mStateVertex; |
Jason Sams | bba134c | 2009-06-22 15:49:21 -0700 | [diff] [blame] | 78 | LightState mStateLight; |
Jason Sams | bb51c40 | 2009-11-25 13:22:07 -0800 | [diff] [blame] | 79 | VertexArrayState mStateVertexArray; |
Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 80 | FontState mStateFont; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 81 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 82 | ScriptCState mScriptC; |
Jason Sams | bb51c40 | 2009-11-25 13:22:07 -0800 | [diff] [blame] | 83 | ShaderCache mShaderCache; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 84 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 85 | void swapBuffers(); |
| 86 | void setRootScript(Script *); |
Jason Sams | ebfb436 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 87 | void setRaster(ProgramRaster *); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 88 | void setVertex(ProgramVertex *); |
| 89 | void setFragment(ProgramFragment *); |
Jason Sams | 54db59c | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 90 | void setFragmentStore(ProgramStore *); |
Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 91 | void setFont(Font *); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 92 | |
| 93 | void updateSurface(void *sur); |
| 94 | |
| 95 | const ProgramFragment * getFragment() {return mFragment.get();} |
Jason Sams | 54db59c | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 96 | const ProgramStore * getFragmentStore() {return mFragmentStore.get();} |
Jason Sams | ebfb436 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 97 | const ProgramRaster * getRaster() {return mRaster.get();} |
Jason Sams | b0ec1b4 | 2009-07-28 12:02:16 -0700 | [diff] [blame] | 98 | const ProgramVertex * getVertex() {return mVertex.get();} |
Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 99 | Font * getFont() {return mFont.get();} |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 100 | |
Jason Sams | 156cce6 | 2010-03-03 13:03:18 -0800 | [diff] [blame] | 101 | bool setupCheck(); |
Jason Sams | 3b7d39b | 2009-12-14 12:57:40 -0800 | [diff] [blame] | 102 | bool checkDriver() const {return mEGL.mSurface != 0;} |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 103 | |
Jason Sams | 65e7aa5 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 104 | void pause(); |
| 105 | void resume(); |
Dianne Hackborn | 8b49bd1 | 2010-06-30 13:56:17 -0700 | [diff] [blame] | 106 | void setSurface(uint32_t w, uint32_t h, ANativeWindow *sur); |
Jason Sams | 7d787b4 | 2009-11-15 12:14:26 -0800 | [diff] [blame] | 107 | void setPriority(int32_t p); |
Jason Sams | 65e7aa5 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 108 | |
Jason Sams | d5680f9 | 2009-06-10 18:39:40 -0700 | [diff] [blame] | 109 | void assignName(ObjectBase *obj, const char *name, uint32_t len); |
Jason Sams | 3eaa338 | 2009-06-10 15:04:38 -0700 | [diff] [blame] | 110 | void removeName(ObjectBase *obj); |
Jason Sams | 9c54bdb | 2009-06-17 16:52:59 -0700 | [diff] [blame] | 111 | |
Jason Sams | 516c319 | 2009-10-06 13:58:47 -0700 | [diff] [blame] | 112 | uint32_t getMessageToClient(void *data, size_t *receiveLen, size_t bufferLen, bool wait); |
| 113 | bool sendMessageToClient(void *data, uint32_t cmdID, size_t len, bool waitForSpace); |
Jason Sams | f17bccc | 2010-05-28 18:23:22 -0700 | [diff] [blame] | 114 | uint32_t runScript(Script *s); |
Jason Sams | 516c319 | 2009-10-06 13:58:47 -0700 | [diff] [blame] | 115 | |
| 116 | void initToClient(); |
| 117 | void deinitToClient(); |
| 118 | |
Jason Sams | 9c54bdb | 2009-06-17 16:52:59 -0700 | [diff] [blame] | 119 | ProgramFragment * getDefaultProgramFragment() const { |
| 120 | return mStateFragment.mDefault.get(); |
| 121 | } |
| 122 | ProgramVertex * getDefaultProgramVertex() const { |
| 123 | return mStateVertex.mDefault.get(); |
| 124 | } |
Jason Sams | 54db59c | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 125 | ProgramStore * getDefaultProgramStore() const { |
Jason Sams | 9c54bdb | 2009-06-17 16:52:59 -0700 | [diff] [blame] | 126 | return mStateFragmentStore.mDefault.get(); |
| 127 | } |
Jason Sams | ebfb436 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 128 | ProgramRaster * getDefaultProgramRaster() const { |
| 129 | return mStateRaster.mDefault.get(); |
| 130 | } |
Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 131 | Font* getDefaultFont() const { |
| 132 | return mStateFont.mDefault.get(); |
| 133 | } |
Jason Sams | 9c54bdb | 2009-06-17 16:52:59 -0700 | [diff] [blame] | 134 | |
Jason Sams | f603d21 | 2010-05-14 15:30:29 -0700 | [diff] [blame] | 135 | uint32_t getWidth() const {return mWidth;} |
| 136 | uint32_t getHeight() const {return mHeight;} |
Jason Sams | 40a29e8 | 2009-08-10 14:55:26 -0700 | [diff] [blame] | 137 | |
Jason Sams | bc948de | 2009-08-17 18:35:48 -0700 | [diff] [blame] | 138 | |
| 139 | ThreadIO mIO; |
| 140 | |
Jason Sams | f4d1606 | 2009-08-19 12:17:14 -0700 | [diff] [blame] | 141 | // Timers |
| 142 | enum Timers { |
| 143 | RS_TIMER_IDLE, |
| 144 | RS_TIMER_INTERNAL, |
| 145 | RS_TIMER_SCRIPT, |
| 146 | RS_TIMER_CLEAR_SWAP, |
| 147 | _RS_TIMER_TOTAL |
| 148 | }; |
| 149 | uint64_t getTime() const; |
| 150 | void timerInit(); |
| 151 | void timerReset(); |
| 152 | void timerSet(Timers); |
| 153 | void timerPrint(); |
Jason Sams | 2525a81 | 2009-09-03 15:43:13 -0700 | [diff] [blame] | 154 | void timerFrame(); |
Jason Sams | f4d1606 | 2009-08-19 12:17:14 -0700 | [diff] [blame] | 155 | |
Jason Sams | b13ada5 | 2009-08-25 11:34:49 -0700 | [diff] [blame] | 156 | bool checkVersion1_1() const {return (mGL.mMajorVersion > 1) || (mGL.mMinorVersion >= 1); } |
| 157 | bool checkVersion2_0() const {return mGL.mMajorVersion >= 2; } |
| 158 | |
Jason Sams | 66b2771 | 2009-09-25 15:25:00 -0700 | [diff] [blame] | 159 | struct { |
| 160 | bool mLogTimes; |
| 161 | bool mLogScripts; |
| 162 | bool mLogObjects; |
Jason Sams | 5dad8b4 | 2009-12-15 19:10:11 -0800 | [diff] [blame] | 163 | bool mLogShaders; |
Alex Sakhartchouk | 6de5550 | 2010-08-03 12:03:16 -0700 | [diff] [blame] | 164 | bool mLogVisual; |
Jason Sams | 66b2771 | 2009-09-25 15:25:00 -0700 | [diff] [blame] | 165 | } props; |
Joe Onorato | 9ac2c66 | 2009-09-23 16:37:36 -0700 | [diff] [blame] | 166 | |
Jason Sams | 9dab667 | 2009-11-24 12:26:35 -0800 | [diff] [blame] | 167 | void dumpDebug() const; |
Jason Sams | 718cd1f | 2009-12-23 14:35:29 -0800 | [diff] [blame] | 168 | void checkError(const char *) const; |
Jason Sams | 156cce6 | 2010-03-03 13:03:18 -0800 | [diff] [blame] | 169 | const char * getError(RsError *); |
Jason Sams | f468700 | 2010-03-10 17:30:41 -0800 | [diff] [blame] | 170 | void setError(RsError e, const char *msg = NULL); |
Jason Sams | 9dab667 | 2009-11-24 12:26:35 -0800 | [diff] [blame] | 171 | |
Jason Sams | a9e7a05 | 2009-09-25 14:51:22 -0700 | [diff] [blame] | 172 | mutable const ObjectBase * mObjHead; |
| 173 | |
Jason Sams | 2978bfc | 2010-02-22 15:37:51 -0800 | [diff] [blame] | 174 | bool ext_OES_texture_npot() const {return mGL.OES_texture_npot;} |
| 175 | |
Jason Sams | 8e6c17f | 2010-07-19 15:38:19 -0700 | [diff] [blame] | 176 | void launchThreads(WorkerCallback_t cbk, void *data); |
Jason Sams | c7f4e41 | 2010-07-20 15:09:00 -0700 | [diff] [blame] | 177 | uint32_t getWorkerPoolSize() const {return (uint32_t)mWorkers.mRunningCount;} |
Jason Sams | 8e6c17f | 2010-07-19 15:38:19 -0700 | [diff] [blame] | 178 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 179 | protected: |
| 180 | Device *mDev; |
| 181 | |
Jason Sams | b13ada5 | 2009-08-25 11:34:49 -0700 | [diff] [blame] | 182 | struct { |
| 183 | EGLint mNumConfigs; |
| 184 | EGLint mMajorVersion; |
| 185 | EGLint mMinorVersion; |
| 186 | EGLConfig mConfig; |
| 187 | EGLContext mContext; |
| 188 | EGLSurface mSurface; |
Jason Sams | b13ada5 | 2009-08-25 11:34:49 -0700 | [diff] [blame] | 189 | EGLDisplay mDisplay; |
| 190 | } mEGL; |
| 191 | |
| 192 | struct { |
| 193 | const uint8_t * mVendor; |
| 194 | const uint8_t * mRenderer; |
| 195 | const uint8_t * mVersion; |
| 196 | const uint8_t * mExtensions; |
| 197 | |
| 198 | uint32_t mMajorVersion; |
| 199 | uint32_t mMinorVersion; |
| 200 | |
Jason Sams | 0011bcf | 2009-12-15 12:58:36 -0800 | [diff] [blame] | 201 | int32_t mMaxVaryingVectors; |
| 202 | int32_t mMaxTextureImageUnits; |
| 203 | |
| 204 | int32_t mMaxFragmentTextureImageUnits; |
| 205 | int32_t mMaxFragmentUniformVectors; |
| 206 | |
| 207 | int32_t mMaxVertexAttribs; |
| 208 | int32_t mMaxVertexUniformVectors; |
| 209 | int32_t mMaxVertexTextureUnits; |
Jason Sams | 2978bfc | 2010-02-22 15:37:51 -0800 | [diff] [blame] | 210 | |
| 211 | bool OES_texture_npot; |
Jason Sams | b13ada5 | 2009-08-25 11:34:49 -0700 | [diff] [blame] | 212 | } mGL; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 213 | |
Jason Sams | 3bc47d4 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 214 | uint32_t mWidth; |
| 215 | uint32_t mHeight; |
Jason Sams | b9d5c57 | 2009-12-09 11:05:45 -0800 | [diff] [blame] | 216 | int32_t mThreadPriority; |
Jason Sams | 704ff64 | 2010-02-09 16:05:07 -0800 | [diff] [blame] | 217 | bool mIsGraphicsContext; |
Jason Sams | 3bc47d4 | 2009-11-12 15:10:25 -0800 | [diff] [blame] | 218 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 219 | bool mRunning; |
| 220 | bool mExit; |
Jason Sams | b13ada5 | 2009-08-25 11:34:49 -0700 | [diff] [blame] | 221 | bool mUseDepth; |
Jason Sams | 65e7aa5 | 2009-09-24 17:38:20 -0700 | [diff] [blame] | 222 | bool mPaused; |
Jason Sams | 156cce6 | 2010-03-03 13:03:18 -0800 | [diff] [blame] | 223 | RsError mError; |
| 224 | const char *mErrorMsg; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 225 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 226 | pthread_t mThreadId; |
Jason Sams | 7d787b4 | 2009-11-15 12:14:26 -0800 | [diff] [blame] | 227 | pid_t mNativeThreadId; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 228 | |
Jason Sams | 8e6c17f | 2010-07-19 15:38:19 -0700 | [diff] [blame] | 229 | struct Workers { |
| 230 | volatile int mRunningCount; |
| 231 | volatile int mLaunchCount; |
| 232 | uint32_t mCount; |
| 233 | pthread_t *mThreadId; |
| 234 | pid_t *mNativeThreadId; |
| 235 | Signal mCompleteSignal; |
| 236 | |
| 237 | Signal *mLaunchSignals; |
| 238 | WorkerCallback_t mLaunchCallback; |
| 239 | void *mLaunchData; |
| 240 | }; |
| 241 | Workers mWorkers; |
| 242 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 243 | ObjectBaseRef<Script> mRootScript; |
| 244 | ObjectBaseRef<ProgramFragment> mFragment; |
| 245 | ObjectBaseRef<ProgramVertex> mVertex; |
Jason Sams | 54db59c | 2010-05-13 18:30:11 -0700 | [diff] [blame] | 246 | ObjectBaseRef<ProgramStore> mFragmentStore; |
Jason Sams | ebfb436 | 2009-09-23 13:57:02 -0700 | [diff] [blame] | 247 | ObjectBaseRef<ProgramRaster> mRaster; |
Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame] | 248 | ObjectBaseRef<Font> mFont; |
Jason Sams | 730ee65 | 2009-08-18 17:07:09 -0700 | [diff] [blame] | 249 | |
Alex Sakhartchouk | 6de5550 | 2010-08-03 12:03:16 -0700 | [diff] [blame] | 250 | void displayDebugStats(); |
| 251 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 252 | private: |
| 253 | Context(); |
| 254 | |
Jason Sams | bb51c40 | 2009-11-25 13:22:07 -0800 | [diff] [blame] | 255 | void initEGL(bool useGL2); |
Jason Sams | 7136220 | 2009-10-27 14:44:31 -0700 | [diff] [blame] | 256 | void deinitEGL(); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 257 | |
Jason Sams | b9d5c57 | 2009-12-09 11:05:45 -0800 | [diff] [blame] | 258 | uint32_t runRootScript(); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 259 | |
| 260 | static void * threadProc(void *); |
Jason Sams | 8e6c17f | 2010-07-19 15:38:19 -0700 | [diff] [blame] | 261 | static void * helperThreadProc(void *); |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 262 | |
Dianne Hackborn | 8b49bd1 | 2010-06-30 13:56:17 -0700 | [diff] [blame] | 263 | ANativeWindow *mWndSurface; |
Jason Sams | 3eaa338 | 2009-06-10 15:04:38 -0700 | [diff] [blame] | 264 | |
| 265 | Vector<ObjectBase *> mNames; |
Jason Sams | f4d1606 | 2009-08-19 12:17:14 -0700 | [diff] [blame] | 266 | |
| 267 | uint64_t mTimers[_RS_TIMER_TOTAL]; |
| 268 | Timers mTimerActive; |
| 269 | uint64_t mTimeLast; |
Jason Sams | 2525a81 | 2009-09-03 15:43:13 -0700 | [diff] [blame] | 270 | uint64_t mTimeFrame; |
| 271 | uint64_t mTimeLastFrame; |
Jason Sams | b9d5c57 | 2009-12-09 11:05:45 -0800 | [diff] [blame] | 272 | uint32_t mTimeMSLastFrame; |
| 273 | uint32_t mTimeMSLastScript; |
| 274 | uint32_t mTimeMSLastSwap; |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 275 | }; |
| 276 | |
Jason Sams | d19f10d | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 277 | } |
| 278 | } |
| 279 | #endif |