SurfaceTextureClient.h revision ac6035a12aec38eeb14d0c13636ec980066d9a8f
18ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis/* 28ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * Copyright (C) 2010 The Android Open Source Project 38ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * 48ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * Licensed under the Apache License, Version 2.0 (the "License"); 58ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * you may not use this file except in compliance with the License. 68ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * You may obtain a copy of the License at 78ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * 88ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * http://www.apache.org/licenses/LICENSE-2.0 98ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * 108ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * Unless required by applicable law or agreed to in writing, software 118ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * distributed under the License is distributed on an "AS IS" BASIS, 128ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 138ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * See the License for the specific language governing permissions and 148ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis * limitations under the License. 158ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis */ 168ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 178ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#ifndef ANDROID_GUI_SURFACETEXTURECLIENT_H 188ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#define ANDROID_GUI_SURFACETEXTURECLIENT_H 198ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 208ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#include <gui/ISurfaceTexture.h> 218ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#include <gui/SurfaceTexture.h> 22b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam#include <gui/BufferQueue.h> 238ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 245f2165f9455d4893b581b73a67c5431f4344b47eMathias Agopian#include <ui/ANativeObjectBase.h> 258f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian#include <ui/Region.h> 268ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 278ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#include <utils/RefBase.h> 288ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#include <utils/threads.h> 29ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian#include <utils/KeyedVector.h> 308ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 31b0e76f456afaada43ddb0968bb37145219f90cd3Mathias Agopianstruct ANativeWindow_Buffer; 32b0e76f456afaada43ddb0968bb37145219f90cd3Mathias Agopian 338ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennisnamespace android { 348ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 357a042bf324fe3f3d5d4085fda21fe50dc0c362b4Mathias Agopianclass Surface; 367a042bf324fe3f3d5d4085fda21fe50dc0c362b4Mathias Agopian 378ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennisclass SurfaceTextureClient 385f2165f9455d4893b581b73a67c5431f4344b47eMathias Agopian : public ANativeObjectBase<ANativeWindow, SurfaceTextureClient, RefBase> 398ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis{ 408ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennispublic: 41b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam 428ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis SurfaceTextureClient(const sp<ISurfaceTexture>& surfaceTexture); 438ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 44b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam // SurfaceTextureClient is overloaded to assist in refactoring ST and BQ. 45b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam // SurfaceTexture is no longer an ISurfaceTexture, so client code 46b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam // calling the original constructor will fail. Thus this convenience method 47b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam // passes in the surfaceTexture's bufferQueue to the init method. 48b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam SurfaceTextureClient(const sp<SurfaceTexture>& surfaceTexture); 49b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam 50bae774eb20bebd409441b93386b51bccda75f546Jamie Gennis sp<ISurfaceTexture> getISurfaceTexture() const; 51bae774eb20bebd409441b93386b51bccda75f546Jamie Gennis 528f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopianprotected: 538f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian SurfaceTextureClient(); 54a36bcd53ac075054bb39ef506687f4daaf9bac6bMathias Agopian virtual ~SurfaceTextureClient(); 558f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian void setISurfaceTexture(const sp<ISurfaceTexture>& surfaceTexture); 568ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 578f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopianprivate: 588ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // can't be copied 598ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis SurfaceTextureClient& operator = (const SurfaceTextureClient& rhs); 608ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis SurfaceTextureClient(const SurfaceTextureClient& rhs); 618f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian void init(); 628ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 638ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // ANativeWindow hooks 648f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 658f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer); 668f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 678f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_perform(ANativeWindow* window, int operation, ...); 688f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_query(const ANativeWindow* window, int what, int* value); 698f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 708f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian static int hook_setSwapInterval(ANativeWindow* window, int interval); 718ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 728ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis int dispatchConnect(va_list args); 738ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis int dispatchDisconnect(va_list args); 748ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis int dispatchSetBufferCount(va_list args); 758ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis int dispatchSetBuffersGeometry(va_list args); 76bee205fd58a27c10a0895de5339e76025d429d2bJamie Gennis int dispatchSetBuffersDimensions(va_list args); 7755a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold int dispatchSetBuffersUserDimensions(va_list args); 78bee205fd58a27c10a0895de5339e76025d429d2bJamie Gennis int dispatchSetBuffersFormat(va_list args); 797734ebfe47f42f980c1b44c1f284a91d8ad1d6c7Mathias Agopian int dispatchSetScalingMode(va_list args); 808ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis int dispatchSetBuffersTransform(va_list args); 811d01a12e7150be569557b64da9b8663c62c13594Eino-Ville Talvala int dispatchSetBuffersTimestamp(va_list args); 829d4d6c101d90d4a1d1ca9413cf3eb89d1f1898d6Jamie Gennis int dispatchSetCrop(va_list args); 839d4d6c101d90d4a1d1ca9413cf3eb89d1f1898d6Jamie Gennis int dispatchSetUsage(va_list args); 848f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian int dispatchLock(va_list args); 858f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian int dispatchUnlockAndPost(va_list args); 868f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian 878f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopianprotected: 888f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int cancelBuffer(ANativeWindowBuffer* buffer); 898f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int dequeueBuffer(ANativeWindowBuffer** buffer); 908f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int lockBuffer(ANativeWindowBuffer* buffer); 918f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int perform(int operation, va_list args); 928f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int query(int what, int* value) const; 938f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int queueBuffer(ANativeWindowBuffer* buffer); 948f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setSwapInterval(int interval); 958f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian 968f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int connect(int api); 978f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int disconnect(int api); 988f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setBufferCount(int bufferCount); 998f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setBuffersDimensions(int w, int h); 10055a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold virtual int setBuffersUserDimensions(int w, int h); 1018f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setBuffersFormat(int format); 1027734ebfe47f42f980c1b44c1f284a91d8ad1d6c7Mathias Agopian virtual int setScalingMode(int mode); 1038f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setBuffersTransform(int transform); 1048f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setBuffersTimestamp(int64_t timestamp); 1058f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setCrop(Rect const* rect); 1068f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int setUsage(uint32_t reqUsage); 1078f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int lock(ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds); 1088f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian virtual int unlockAndPost(); 1097a042bf324fe3f3d5d4085fda21fe50dc0c362b4Mathias Agopian 110b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam enum { NUM_BUFFER_SLOTS = BufferQueue::NUM_BUFFER_SLOTS }; 1118ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis enum { DEFAULT_FORMAT = PIXEL_FORMAT_RGBA_8888 }; 1128ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 1138f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopianprivate: 1148f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian void freeAllBuffers(); 1158f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian int getSlotFromBufferLocked(android_native_buffer_t* buffer) const; 1168f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian 117ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian struct BufferSlot { 118ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian sp<GraphicBuffer> buffer; 119ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian Region dirtyRegion; 120ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian }; 121ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian 1228ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // mSurfaceTexture is the interface to the surface texture server. All 1238ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // operations on the surface texture client ultimately translate into 1248ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // interactions with the server using this interface. 1258ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis sp<ISurfaceTexture> mSurfaceTexture; 1268ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 1278ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // mSlots stores the buffers that have been allocated for each buffer slot. 1288ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // It is initialized to null pointers, and gets filled in with the result of 1298ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // ISurfaceTexture::requestBuffer when the client dequeues a buffer from a 1308ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // slot that has not yet been used. The buffer allocated to a slot will also 1318ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // be replaced if the requested buffer usage or geometry differs from that 1328ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // of the buffer allocated to a slot. 133ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian BufferSlot mSlots[NUM_BUFFER_SLOTS]; 1348ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 1358ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // mReqWidth is the buffer width that will be requested at the next dequeue 1368ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // operation. It is initialized to 1. 1378ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis uint32_t mReqWidth; 1388ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 139851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // mReqHeight is the buffer height that will be requested at the next 140851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // dequeue operation. It is initialized to 1. 1418ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis uint32_t mReqHeight; 1428ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 1438ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // mReqFormat is the buffer pixel format that will be requested at the next 1448ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // deuque operation. It is initialized to PIXEL_FORMAT_RGBA_8888. 1458ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis uint32_t mReqFormat; 1468ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 1478ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // mReqUsage is the set of buffer usage flags that will be requested 1488ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // at the next deuque operation. It is initialized to 0. 1498ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis uint32_t mReqUsage; 1508ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 1511d01a12e7150be569557b64da9b8663c62c13594Eino-Ville Talvala // mTimestamp is the timestamp that will be used for the next buffer queue 1521d01a12e7150be569557b64da9b8663c62c13594Eino-Ville Talvala // operation. It defaults to NATIVE_WINDOW_TIMESTAMP_AUTO, which means that 1531d01a12e7150be569557b64da9b8663c62c13594Eino-Ville Talvala // a timestamp is auto-generated when queueBuffer is called. 1541d01a12e7150be569557b64da9b8663c62c13594Eino-Ville Talvala int64_t mTimestamp; 1551d01a12e7150be569557b64da9b8663c62c13594Eino-Ville Talvala 156851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // mCrop is the crop rectangle that will be used for the next buffer 157851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // that gets queued. It is set by calling setCrop. 158851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian Rect mCrop; 159851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian 160851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // mScalingMode is the scaling mode that will be used for the next 161851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // buffers that get queued. It is set by calling setScalingMode. 162851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian int mScalingMode; 163851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian 164851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // mTransform is the transform identifier that will be used for the next 165851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian // buffer that gets queued. It is set by calling setTransform. 166851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian uint32_t mTransform; 167851ef8f1bfbb164d61b1528a529a464f0a60dbafMathias Agopian 16855a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // mDefaultWidth is default width of the buffers, regardless of the 16955a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // native_window_set_buffers_dimensions call. 17055a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold uint32_t mDefaultWidth; 17197c602c5af5f3ffd69009bf496d86347b71a2b4cMathias Agopian 17255a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // mDefaultHeight is default height of the buffers, regardless of the 17355a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // native_window_set_buffers_dimensions call. 17455a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold uint32_t mDefaultHeight; 17555a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold 17655a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // mUserWidth, if non-zero, is an application-specified override 17755a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // of mDefaultWidth. This is lower priority than the width set by 17855a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // native_window_set_buffers_dimensions. 17955a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold uint32_t mUserWidth; 18055a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold 18155a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // mUserHeight, if non-zero, is an application-specified override 18255a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // of mDefaultHeight. This is lower priority than the height set 18355a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold // by native_window_set_buffers_dimensions. 18455a701459de964ae3504264a6b8c4dc37f54a9e8Michael I. Gold uint32_t mUserHeight; 18597c602c5af5f3ffd69009bf496d86347b71a2b4cMathias Agopian 18697c602c5af5f3ffd69009bf496d86347b71a2b4cMathias Agopian // mTransformHint is the transform probably applied to buffers of this 18797c602c5af5f3ffd69009bf496d86347b71a2b4cMathias Agopian // window. this is only a hint, actual transform may differ. 18897c602c5af5f3ffd69009bf496d86347b71a2b4cMathias Agopian uint32_t mTransformHint; 18997c602c5af5f3ffd69009bf496d86347b71a2b4cMathias Agopian 1908ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // mMutex is the mutex used to prevent concurrent access to the member 1918ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // variables of SurfaceTexture objects. It must be locked whenever the 1928ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis // member variables are accessed. 1937a042bf324fe3f3d5d4085fda21fe50dc0c362b4Mathias Agopian mutable Mutex mMutex; 1948f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian 1958f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian // must be used from the lock/unlock thread 1968f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian sp<GraphicBuffer> mLockedBuffer; 1978f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian sp<GraphicBuffer> mPostedBuffer; 1988f9dbf9e13b927de2524116c30544f7dfbbbf56cMathias Agopian bool mConnectedToCpu; 199ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian 200ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian // must be accessed from lock/unlock thread only 201ac6035a12aec38eeb14d0c13636ec980066d9a8fMathias Agopian Region mDirtyRegion; 2028ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis}; 2038ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 2048ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis}; // namespace android 2058ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis 2068ba32fade11abb73f3fd47ea0953c9528eb5b91fJamie Gennis#endif // ANDROID_GUI_SURFACETEXTURECLIENT_H 207